From 53aaf95855b3e9bdcc834e906042c7dc0ca446c3 Mon Sep 17 00:00:00 2001
From: Ryan Bigg <radarlistener@gmail.com>
Date: Thu, 17 May 2012 19:07:24 +1000
Subject: [getting started] explain :as option

---
 guides/source/getting_started.textile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'guides/source/getting_started.textile')

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
 
-- 
cgit v1.2.3

