diff options
Diffstat (limited to 'railties/lib/generators/rails/controller')
-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 |