From a9f029ebf0229f3383b5d8853f6d7293e14ae512 Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Thu, 17 May 2012 20:27:15 +1000 Subject: [PATCH] [getting started] briefly explain form_for with array parameters --- guides/source/getting_started.textile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 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+: class CommentsController < ApplicationController -- GitLab