Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@dhh dhh authored
Showing with 4 additions and 2 deletions.
  1. +2 −0  railties/CHANGELOG
  2. +2 −2 railties/lib/dispatcher.rb
View
2  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]
View
4 railties/lib/dispatcher.rb
@@ -79,11 +79,11 @@ def controller_class_name(controller_name)
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)
Please sign in to comment.
Something went wrong with that request. Please try again.