aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators/rails/controller/controller_generator.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-03-22 21:06:03 +0100
committerJosé Valim <jose.valim@gmail.com>2010-03-22 21:07:37 +0100
commite8a80cdded7d4a3ecf8d125681ab8bcae2b91504 (patch)
tree21b73133d685292d6ae96a1da6614e9dde8927e6 /railties/lib/generators/rails/controller/controller_generator.rb
parent4998e097cc597f26cbe292552bcf5608b87cb1d2 (diff)
downloadrails-e8a80cdded7d4a3ecf8d125681ab8bcae2b91504.tar.gz
rails-e8a80cdded7d4a3ecf8d125681ab8bcae2b91504.tar.bz2
rails-e8a80cdded7d4a3ecf8d125681ab8bcae2b91504.zip
Controller generators should use routes shortcut.
Diffstat (limited to 'railties/lib/generators/rails/controller/controller_generator.rb')
-rw-r--r--railties/lib/generators/rails/controller/controller_generator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/generators/rails/controller/controller_generator.rb b/railties/lib/generators/rails/controller/controller_generator.rb
index 5d2e36b499..9788c0d0bc 100644
--- a/railties/lib/generators/rails/controller/controller_generator.rb
+++ b/railties/lib/generators/rails/controller/controller_generator.rb
@@ -10,7 +10,7 @@ module Rails
def add_routes
actions.reverse.each do |action|
- route %{get "/#{file_name}/#{action}" => "#{file_name}##{action}"}
+ route %{get "#{file_name}/#{action}"}
end
end