From f4bfacb24fbe17c1010a46c2b2d7a15d44cf1918 Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Thu, 7 Jul 2005 19:51:20 +0000 Subject: Enable routes to recognize uppercase controller names. Closes #1635 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1765 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/routing.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index 8673412401..1a50eb488d 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -210,7 +210,7 @@ module ActionController mod_name = controller_name = segment = nil while index < length - return nil unless /^[a-z][a-z\d_]*$/ =~ (segment = segments[index]) + return nil unless /^[A-Za-z][A-Za-z\d_]*$/ =~ (segment = segments[index]) index += 1 mod_name = segment.camelize -- cgit v1.2.3