Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change default root route helper

  • Loading branch information...
commit 33d92bf69ec5e6f385612b69a6295f5a80332ef8 1 parent d100560
@banyan banyan authored
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'
Please sign in to comment.
Something went wrong with that request. Please try again.