powered by UserVoice

Rails Feedback Forum

Log in or Sign up |

923 votes

Nested model forms completed

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

- mattetti
  1. Voting Trends (last 60 days)
Chart?chd=s:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&cht=ls&chco=333333&chf=bg,s,ffffff00&chs=450x60
  1. Comments
  1. Default-avatar

    Shouldn't this get marked as in so that the votes get returned to folks?

  2. Default-avatar

    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!

  3. 3 Default-avatar

    Hurray!

  4. 3 Default-avatar

    Awesome news! I'm stoked.

  5. Default-avatar

    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

Log in to leave a comment

powered by UserVoice