aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
diff options
context:
space:
mode:
authorKohei Hasegawa <ameutau@gmail.com>2013-02-26 03:25:06 +0900
committerKohei Hasegawa <ameutau@gmail.com>2013-02-26 03:25:59 +0900
commit33d92bf69ec5e6f385612b69a6295f5a80332ef8 (patch)
tree5c3d0c222058d5290b735ad3102933db58c0215f /railties/lib/rails/generators
parentd10056087c01baa6d97059ae01834099372fe681 (diff)
downloadrails-33d92bf69ec5e6f385612b69a6295f5a80332ef8.tar.gz
rails-33d92bf69ec5e6f385612b69a6295f5a80332ef8.tar.bz2
rails-33d92bf69ec5e6f385612b69a6295f5a80332ef8.zip
Change default root route helper
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r--railties/lib/rails/generators/actions.rb2
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/routes.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/actions.rb b/railties/lib/rails/generators/actions.rb
index cb3aca5811..28593c5907 100644
--- a/railties/lib/rails/generators/actions.rb
+++ b/railties/lib/rails/generators/actions.rb
@@ -215,7 +215,7 @@ module Rails
# Make an entry in Rails routing file config/routes.rb
#
- # route "root :to => 'welcome#index'"
+ # route "root 'welcome#index'"
def route(routing_code)
log :route, routing_code
sentinel = /\.routes\.draw do\s*$/
diff --git a/railties/lib/rails/generators/rails/app/templates/config/routes.rb b/railties/lib/rails/generators/rails/app/templates/config/routes.rb
index 22a6aeb5fe..f877fa1f8a 100644
--- a/railties/lib/rails/generators/rails/app/templates/config/routes.rb
+++ b/railties/lib/rails/generators/rails/app/templates/config/routes.rb
@@ -3,7 +3,7 @@
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
- # root to: 'welcome#index'
+ # root 'welcome#index'
# Example of regular route:
# get 'products/:id' => 'catalog#view'