aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2012-05-22 07:35:50 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2012-05-22 07:35:50 -0700
commit1d4d73193d58e47c517ea53ed2c4b8d6af346f85 (patch)
tree4a519734d80d9201cdee2bd7019a66673a48c547 /railties
parent38293ea828ab52043fceecbdc96946b5bc9bb0e5 (diff)
parent43fa48e5aa981bf86635fa31ace9eede24e93826 (diff)
downloadrails-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')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/routes.rb7
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