> accepts_nested_attributes_for did not seem to suit to set the plan to > being active ... but could be missing something on that? >
I was working something similar today and originally tried something similar to this: http://railscasts.com/episodes/75-complex-forms-part-3 but had odd things happening updating the association. In the end I did something like this ...... class Parent < ActiveRecord::Base has_many :children accepts_nested_attributes_for :children end <% f.fields_for 'children_attributes[]', @child do |child_form| %> ... child fields <%= child_form.hidden_field :id %> <% end %> -- Shane Mingins --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "WellRailed" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/WellRailed?hl=en -~----------~----~----~----~------~----~------~--~---
