diff options
author | José Valim <jose.valim@gmail.com> | 2010-03-22 21:06:03 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-03-22 21:07:37 +0100 |
commit | e8a80cdded7d4a3ecf8d125681ab8bcae2b91504 (patch) | |
tree | 21b73133d685292d6ae96a1da6614e9dde8927e6 /railties/lib | |
parent | 4998e097cc597f26cbe292552bcf5608b87cb1d2 (diff) | |
download | rails-e8a80cdded7d4a3ecf8d125681ab8bcae2b91504.tar.gz rails-e8a80cdded7d4a3ecf8d125681ab8bcae2b91504.tar.bz2 rails-e8a80cdded7d4a3ecf8d125681ab8bcae2b91504.zip |
Controller generators should use routes shortcut.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/generators/rails/controller/controller_generator.rb | 2 |
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 |