diff options
author | Oscar Del Ben <info@oscardelben.com> | 2012-04-20 10:43:50 +0200 |
---|---|---|
committer | Oscar Del Ben <info@oscardelben.com> | 2012-04-20 10:43:50 +0200 |
commit | f6d5036dd620da48624ce32494f63aa4221b05d5 (patch) | |
tree | b023a6730c5dffee1a5724d7c026bfa369efeccf /guides/code/getting_started/config | |
parent | 0d5a7ad84ddbcb4de7c327e39a7747e00b0cd89f (diff) | |
download | rails-f6d5036dd620da48624ce32494f63aa4221b05d5.tar.gz rails-f6d5036dd620da48624ce32494f63aa4221b05d5.tar.bz2 rails-f6d5036dd620da48624ce32494f63aa4221b05d5.zip |
Adapt "Getting started guide" code sample
Diffstat (limited to 'guides/code/getting_started/config')
-rw-r--r-- | guides/code/getting_started/config/routes.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/guides/code/getting_started/config/routes.rb b/guides/code/getting_started/config/routes.rb index b048ac68f1..98b1a6dcc8 100644 --- a/guides/code/getting_started/config/routes.rb +++ b/guides/code/getting_started/config/routes.rb @@ -1,9 +1,10 @@ Blog::Application.routes.draw do - resources :posts do - resources :comments - end + # resources :posts do + # resources :comments + # end - get "home/index" + get "posts/new" + post "posts/create" # The priority is based upon order of creation: # first created -> highest priority. @@ -55,7 +56,7 @@ 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" - + # See how all your routes lay out with "rake routes" # This is a legacy wild controller route that's not recommended for RESTful applications. |