Skip to content
Browse files

Merge pull request #6440 from gaurish/route_move_top

Move root method at TOP of routes file
  • Loading branch information...
2 parents 38293ea + 43fa48e commit 1d4d73193d58e47c517ea53ed2c4b8d6af346f85 @jeremy jeremy committed May 22, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 railties/lib/rails/generators/rails/app/templates/config/routes.rb
View
7 railties/lib/rails/generators/rails/app/templates/config/routes.rb
@@ -1,6 +1,10 @@
<%= app_const %>.routes.draw do
# The priority is based upon order of creation:
# first created -> highest priority.
+
+ # You can have the root of your site routed with "root"
+ # just remember to delete public/index.html.
+ # root :to => 'welcome#index'
# Sample of regular route:
# get 'products/:id' => 'catalog#view'
@@ -46,9 +50,6 @@
# resources :products
# end
- # You can have the root of your site routed with "root"
- # just remember to delete public/index.html.
- # root :to => 'welcome#index'
# See how all your routes lay out with "rake routes"
end

0 comments on commit 1d4d731

Please sign in to comment.
Something went wrong with that request. Please try again.