diff options
author | Oscar Del Ben <info@oscardelben.com> | 2012-04-28 11:44:50 +0200 |
---|---|---|
committer | Oscar Del Ben <info@oscardelben.com> | 2012-04-28 11:44:50 +0200 |
commit | 943410197cca4235212ca0fc409820378a40890c (patch) | |
tree | 696296607328deb79d235e1e3157e9436d6217db /guides/code | |
parent | fc3d15dcb0c4265d1aaeedfc51d8a8c8e382347a (diff) | |
download | rails-943410197cca4235212ca0fc409820378a40890c.tar.gz rails-943410197cca4235212ca0fc409820378a40890c.tar.bz2 rails-943410197cca4235212ca0fc409820378a40890c.zip |
Add REST section to getting started guide
Diffstat (limited to 'guides/code')
-rw-r--r-- | guides/code/getting_started/config/routes.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/guides/code/getting_started/config/routes.rb b/guides/code/getting_started/config/routes.rb index 6095a05a58..5fb85de766 100644 --- a/guides/code/getting_started/config/routes.rb +++ b/guides/code/getting_started/config/routes.rb @@ -1,15 +1,6 @@ Blog::Application.routes.draw do - # resources :posts do - # resources :comments - # end - get "posts" => "posts#index" - get "posts/new" - post "posts/create" - get "posts/:id" => "posts#show", :as => :post - get "posts/:id/edit" => "posts#edit" - put "posts/:id" => "posts#update" - delete "posts/:id" => "posts#destroy" + resources :posts # The priority is based upon order of creation: # first created -> highest priority. |