Browse files

Change default root route helper

  • Loading branch information...
1 parent d100560 commit 33d92bf69ec5e6f385612b69a6295f5a80332ef8 @banyan banyan committed Feb 25, 2013
View
4 guides/code/getting_started/config/routes.rb
@@ -2,6 +2,6 @@
resources :posts do
resources :comments
end
-
- root to: "welcome#index"
+
+ root "welcome#index"
end
View
2 railties/lib/rails/generators/actions.rb
@@ -215,7 +215,7 @@ def capify!
# 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*$/
View
2 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'

0 comments on commit 33d92bf

Please sign in to comment.