From 28cee08fa440dfc9a9b73a4e9c16ca5d1db2fdbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=BCtke?= Date: Sat, 4 Feb 2006 22:04:19 +0000 Subject: fixed small bug in routing which caused the traverse_to_controller mechanism to drop out on Multi::Nested::Controllers git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3538 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/routing.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index 47bf3c9d87..2ad8534b15 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -244,7 +244,7 @@ module ActionController 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 -- cgit v1.2.3