Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed small bug in routing which caused the traverse_to_controller me…

…chanism to drop out on

Multi::Nested::Controllers


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3538 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 28cee08fa440dfc9a9b73a4e9c16ca5d1db2fdbb 1 parent 6fa5b7b
Tobias Lütke authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/routing.rb
View
2  actionpack/lib/action_controller/routing.rb
@@ -244,7 +244,7 @@ def traverse_to_controller(segments, start_at = 0)
mod = suppress(NameError) do
next_mod = eval("mod::#{mod_name}", nil, __FILE__, __LINE__)
# Check that we didn't get a module from a parent namespace
- (mod == Object || next_mod.name == "#{mod.name}::#{controller_name}") ? next_mod : nil
+ (mod == Object || next_mod.name == "#{mod.name}::#{mod_name}") ? next_mod : nil
end
raise RoutingError, "Cannot find controller: Dropped out at #{segments[start_at..index] * '/'}" unless mod
Please sign in to comment.
Something went wrong with that request. Please try again.