diff options
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/getting_started.textile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile index ad31f7ce3b..8463887cfd 100644 --- a/guides/source/getting_started.textile +++ b/guides/source/getting_started.textile @@ -1388,7 +1388,10 @@ So first, we'll wire up the Post show template </erb> This adds a form on the +Post+ show page that creates a new comment by -calling the +CommentsController+ +create+ action. Let's wire that up: +calling the +CommentsController+ +create+ action. The +form_for+ call here uses +an array, which will build a nested route, such as +/posts/1/comments+. + +Let's wire up the +create+: <ruby> class CommentsController < ApplicationController |