[Rails] Re: form_for
Frederick Cheung wrote:
> On Aug 14, 2:23�pm, Abder-Rahman Ali <li...@ruby-forum.com> wrote:
>> form_for: used to generate a form.
>> @post: the object form_for is bound to.
>>
>> The part I didn't get here is:
>>
>> @post.comments.build
>>
>> What does that part provide me with?
>
> It's a namespaced resource - it's a form for a new comment belonging
> to @post
>
> Fred
Thanks Fred.
What is "namespaced resource"?
Thanks.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home