It struck me today that there's no way to emulate
accepts_nested_attributes_for for saving multiple objects that aren't
nested.

accepts_nested_attributes_for gives a good pattern for managing
multiple objects in a single form, elegantly handling current records
and new records, and validations for the lot of them.

Should there be an equivalent way to manage multiple objects in a
single form that aren't nested under any parent? Something like:

@posts = Post.all

<% form_for @posts do |f| %>
  <% fields_for :post %>
    ...
  <% end %>
<% end %>

What do you think?

Paul

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-core+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to