aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-24 16:19:29 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-24 16:19:29 +0000
commit453bc7346deb7ed9ec41067913a727bdbcc5f5a7 (patch)
tree38948ea77c10d0de36a5a3254f83c1f7744ce3b4 /railties
parentb69d33752703b36c1b8b5ccf043fd80a5d323d82 (diff)
downloadrails-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')
-rw-r--r--railties/CHANGELOG2
-rw-r--r--railties/lib/dispatcher.rb4
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)