diff options
Diffstat (limited to 'guides/code/getting_started/config')
-rw-r--r-- | guides/code/getting_started/config/routes.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/guides/code/getting_started/config/routes.rb b/guides/code/getting_started/config/routes.rb index b048ac68f1..04a6bd374e 100644 --- a/guides/code/getting_started/config/routes.rb +++ b/guides/code/getting_started/config/routes.rb @@ -1,10 +1,9 @@ Blog::Application.routes.draw do + resources :posts do resources :comments end - get "home/index" - # The priority is based upon order of creation: # first created -> highest priority. @@ -54,8 +53,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. |