To ask another way:
Using a Polymorphic Assocation, if Photo and Article each
''has_many''
Comments, the comment form should call the CommentsController, as
shown here http://railscasts.com/episodes/154-polymorphic-association
-- But what if I''m editing multiple comments in one form for a given
Photo. In this case should the form still call the CommentsController
or is it better off calling the PhotoController?
On Aug 4, 2:20 pm, 99miles
<99mi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> This example shows how to create a form for an associated model
> ''Comment'', where ''Comment'' belongs_to
''Post'' and ''Post has_many
> ''Comments''.
>
> http://edgeguides.rubyonrails.org/getting_started.html#generating-a-c...
>
> How might I modify that to display all the comments in the form, and
> still have it call the CommentsController (versus having the form call
> the PostsController, as in the example
herehttp://railscasts.com/episodes/17-habtm-checkboxes)?
>
> Thanks
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
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.