Skip to content
This repository
Browse code

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
  • Loading branch information...
commit 453bc7346deb7ed9ec41067913a727bdbcc5f5a7 1 parent b69d337
David Heinemeier Hansson authored January 24, 2005
2  railties/CHANGELOG
... ...
@@ -1,5 +1,7 @@
1 1
 *SVN*
2 2
 
  3
+* Fixed that /Recipe/new and /recipe/new points to the same thing [Lyle Johnson]
  4
+
3 5
 * Added Florian Gross' latest version of Breakpointer and friends that fixes a variaty of bugs #441 [Florian Gross]
4 6
 
5 7
 * Fixed skeleton Rakefile to work with sqlite3 out of the box #521 [rasputnik]
4  railties/lib/dispatcher.rb
@@ -79,11 +79,11 @@ def controller_class_name(controller_name)
79 79
       end
80 80
 
81 81
       def controller_name(parameters)
82  
-        parameters["controller"].gsub(/[^_a-zA-Z0-9]/, "").untaint
  82
+        parameters["controller"].downcase.gsub(/[^_a-zA-Z0-9]/, "").untaint
83 83
       end
84 84
 
85 85
       def module_name(parameters)
86  
-        parameters["module"].gsub(/[^_a-zA-Z0-9]/, "").untaint if parameters["module"]
  86
+        parameters["module"].downcase.gsub(/[^_a-zA-Z0-9]/, "").untaint if parameters["module"]
87 87
       end
88 88
 
89 89
       def remove_class_hierarchy(klass, until_superclass)

0 notes on commit 453bc73

Please sign in to comment.
Something went wrong with that request. Please try again.