aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/getting_started.textile
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2012-05-17 19:07:24 +1000
committerRyan Bigg <radarlistener@gmail.com>2012-05-17 19:56:56 +1000
commit53aaf95855b3e9bdcc834e906042c7dc0ca446c3 (patch)
tree2321637b56f4078a14b22c58bd84cfc012a4ff91 /guides/source/getting_started.textile
parent146105a40f3a55041a618099bd49a66a335bb20c (diff)
downloadrails-53aaf95855b3e9bdcc834e906042c7dc0ca446c3.tar.gz
rails-53aaf95855b3e9bdcc834e906042c7dc0ca446c3.tar.bz2
rails-53aaf95855b3e9bdcc834e906042c7dc0ca446c3.zip
[getting started] explain :as option
Diffstat (limited to 'guides/source/getting_started.textile')
-rw-r--r--guides/source/getting_started.textile5
1 files changed, 4 insertions, 1 deletions
diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile
index c105007a1a..166de11deb 100644
--- a/guides/source/getting_started.textile
+++ b/guides/source/getting_started.textile
@@ -1058,7 +1058,10 @@ line like this:
get "posts/:id" => "posts#show", :as => :post
</ruby>
-Now you'll be able to update posts again.
+The +:as+ option tells the +get+ method that we want to make routing helpers
+called +post_url+ and +post_path+ available to our application. These are
+precisely the methods that the +form_for+ needs when editing a post, and so now
+you'll be able to update posts again.
h4. Deleting Posts