Nested model forms
Rails desperately needs a unified solution for the display and consumption of nested model forms (complex forms). The ideal solution would included both model-level support for mass assignment of nested models as well as view-level helpers for the creation of forms to allow for the editing of such models.
This was a feature that tried to make it into an earlier release of Rails (see: http://ryandaigle.com/articles/2008/7/19/what-s-new-in-edge-rails-nested-models) but was later pulled (see: http://groups.google.com/group/rubyonrails-core/browse_thread/thread/3c61e00916c365e5?pli=1) so it could bake a little longer. It seems to be time to turn the oven up on this idea, it's gone unsolved for too long despite a clear need.
This feature was already started and is planned to be available in Rails 2.3
5 comments
-
NoahHorton
commented
Shouldn't this get marked as in so that the votes get returned to folks?
-
register
commented
I would love to use check boxes in my forms to add and remove nested models. That way, I can use unobtrusive javascript to do the add and remove via remote calls. Thanks!
-
sethladd
commented
Hurray!
-
rwdaigle
commented
Awesome news! I'm stoked.
-
wycats
commented
This is already in the 2.3 milestone, and is actively being worked on. You can track it at http://rails.lighthouseapp.com/projects/8994/tickets/1202-add-attributes-writer-method-for-an-association