diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-24 16:19:29 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-24 16:19:29 +0000 |
commit | 453bc7346deb7ed9ec41067913a727bdbcc5f5a7 (patch) | |
tree | 38948ea77c10d0de36a5a3254f83c1f7744ce3b4 /railties/lib | |
parent | b69d33752703b36c1b8b5ccf043fd80a5d323d82 (diff) | |
download | rails-453bc7346deb7ed9ec41067913a727bdbcc5f5a7.tar.gz rails-453bc7346deb7ed9ec41067913a727bdbcc5f5a7.tar.bz2 rails-453bc7346deb7ed9ec41067913a727bdbcc5f5a7.zip |
Fixed that /Recipe/new and /recipe/new points to the same thing [Lyle Johnson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@500 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/dispatcher.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/dispatcher.rb b/railties/lib/dispatcher.rb index 1b53d24a86..3fb593bd9d 100644 --- a/railties/lib/dispatcher.rb +++ b/railties/lib/dispatcher.rb @@ -79,11 +79,11 @@ class Dispatcher end def controller_name(parameters) - parameters["controller"].gsub(/[^_a-zA-Z0-9]/, "").untaint + parameters["controller"].downcase.gsub(/[^_a-zA-Z0-9]/, "").untaint end def module_name(parameters) - parameters["module"].gsub(/[^_a-zA-Z0-9]/, "").untaint if parameters["module"] + parameters["module"].downcase.gsub(/[^_a-zA-Z0-9]/, "").untaint if parameters["module"] end def remove_class_hierarchy(klass, until_superclass) |