Hello there, I have a form_for and a fields_for within the form_for. I
want to add/delete item in the fields_for and refresh the items in the
fields_for list without having to regenerate the whole form.

Now, if I set up link_to_remotes for adding/deleting the item in
fields_for, it calls the controller, with the proper item to add/
delete, but what do I do to refresh the items in the fields_for after
the collection has been modified? Because the fields_for fields are
part of nested_attributes, how do I tell the view what the new
collection is to generate? Is there a way to convert a collection in a
controller to a fields_for collection, so the view can process it?

This has been frustrating to figure out...

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to