Permalink
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...
1 parent 6fa5b7b commit 28cee08fa440dfc9a9b73a4e9c16ca5d1db2fdbb Tobias Lütke committed Feb 4, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 28cee08

Please sign in to comment.