diff options
author | Oscar Del Ben <info@oscardelben.com> | 2012-04-24 14:21:07 +0200 |
---|---|---|
committer | Oscar Del Ben <info@oscardelben.com> | 2012-04-24 14:21:07 +0200 |
commit | f0de7172a6e1a52bf122578954d805a36a488d27 (patch) | |
tree | e5d5a1899f1d3d9224cc0245795c55dc8f62349f /guides/code/getting_started/config | |
parent | 5acb345a86584e3c9c4b5a81c4499c767393c89a (diff) | |
download | rails-f0de7172a6e1a52bf122578954d805a36a488d27.tar.gz rails-f0de7172a6e1a52bf122578954d805a36a488d27.tar.bz2 rails-f0de7172a6e1a52bf122578954d805a36a488d27.zip |
Add update post section to getting started guide
Diffstat (limited to 'guides/code/getting_started/config')
-rw-r--r-- | guides/code/getting_started/config/routes.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/code/getting_started/config/routes.rb b/guides/code/getting_started/config/routes.rb index 10009a35cf..b0973c62d5 100644 --- a/guides/code/getting_started/config/routes.rb +++ b/guides/code/getting_started/config/routes.rb @@ -7,6 +7,8 @@ Blog::Application.routes.draw do get "posts/new" post "posts/create" get "posts/:id" => "posts#show" + get "posts/:id/edit" => "posts#edit" + put "posts/:id/update" => "posts#update" # The priority is based upon order of creation: # first created -> highest priority. |