diff options
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/lib/dispatcher.rb | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index baa5494f41..6ff7af047a 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fixed that /Recipe/new and /recipe/new points to the same thing [Lyle Johnson] + * Added Florian Gross' latest version of Breakpointer and friends that fixes a variaty of bugs #441 [Florian Gross] * Fixed skeleton Rakefile to work with sqlite3 out of the box #521 [rasputnik] 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) |