From e8a80cdded7d4a3ecf8d125681ab8bcae2b91504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Mon, 22 Mar 2010 21:06:03 +0100 Subject: Controller generators should use routes shortcut. --- railties/lib/generators/rails/controller/controller_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/generators') 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 -- cgit v1.2.3