diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2012-05-22 07:35:50 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2012-05-22 07:35:50 -0700 |
commit | 1d4d73193d58e47c517ea53ed2c4b8d6af346f85 (patch) | |
tree | 4a519734d80d9201cdee2bd7019a66673a48c547 /railties/lib/rails | |
parent | 38293ea828ab52043fceecbdc96946b5bc9bb0e5 (diff) | |
parent | 43fa48e5aa981bf86635fa31ace9eede24e93826 (diff) | |
download | rails-1d4d73193d58e47c517ea53ed2c4b8d6af346f85.tar.gz rails-1d4d73193d58e47c517ea53ed2c4b8d6af346f85.tar.bz2 rails-1d4d73193d58e47c517ea53ed2c4b8d6af346f85.zip |
Merge pull request #6440 from gaurish/route_move_top
Move root method at TOP of routes file
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/routes.rb | 7 |
1 files changed, 4 insertions, 3 deletions
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 286e93c3cf..303e47877f 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/routes.rb +++ b/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
\ No newline at end of file |