diff options
Diffstat (limited to 'guides/code/getting_started/config')
-rw-r--r-- | guides/code/getting_started/config/routes.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/guides/code/getting_started/config/routes.rb b/guides/code/getting_started/config/routes.rb index b048ac68f1..5fb85de766 100644 --- a/guides/code/getting_started/config/routes.rb +++ b/guides/code/getting_started/config/routes.rb @@ -1,9 +1,6 @@ Blog::Application.routes.draw do - resources :posts do - resources :comments - end - get "home/index" + resources :posts # The priority is based upon order of creation: # first created -> highest priority. @@ -54,8 +51,8 @@ Blog::Application.routes.draw do # You can have the root of your site routed with "root" # just remember to delete public/index.html. - root :to => "home#index" - + root :to => "welcome#index" + # See how all your routes lay out with "rake routes" # This is a legacy wild controller route that's not recommended for RESTful applications. |