Nice work on the accepts nested attributes for, I've been waiting for this for a while and haven't had the time to write it.
I am curious to know about the feature for deleting attributes. For a lot of reasons, I prefer to just not send back the items I want deleted. Do you think it would make sense to add an attribute called something like deletes_when_not_present that would essentially update or create the nested objects, and then deletes any that are present still in the database that weren't in the hash? Here is the basic of the workaround I'm using... old_ids = parent.get_children_ids parent.update(params[:parent]) old_ids.each do |oid| oid.member? parent.children_ids || Parent.destroy(oid) end Is there a reason it was skipped? I'd be more than happy to write a patch for it, but I don't want to waste time if its breaking convention. I work in very large xml data sets with flex and sending redundant data gets costly and cuts down on efficiency. -Josh --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---