In an effort to keep rails' seamless integration between html forms and persistent objects, I thought this feature could be used (I'm currently using it in my application). It lets you udpate multiple associations in a form. Probably the best way is to explain through potential user code. Here's from my app:
in rhtml:
<% for @event in @events %>
<% for @article in @event.articles %>
<%= text_field("event[]article[]", 'id') %>
now I can load the user's input back into the db upon form submission. This is from my action:
@events = Event.load_hash(params[:event])
Simple as pie. This is my first rails(and ruby) patch submitted, so keep that in mind. Hopefully the submitted tests will help explain as well. I'll keep my eye on this thread, so let me know comments one way or the other.
Thanks,
Ben