Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save amatsuda/137480 to your computer and use it in GitHub Desktop.
Save amatsuda/137480 to your computer and use it in GitHub Desktop.
--- a/actionpack/lib/action_controller/routing/route_set.rb
+++ b/actionpack/lib/action_controller/routing/route_set.rb
@@ -436,7 +436,7 @@ module ActionController
def recognize(request)
params = recognize_path(request.path, extract_request_environment(request))
request.path_parameters = params.with_indifferent_access
- "#{params[:controller].camelize}Controller".constantize
+ "#{params[:controller].to_s.camelize}Controller".constantize
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment