search for: parent_child_activities_fields

Displaying 1 result from an estimated 1 matches for "parent_child_activities_fields".

2009 Jul 28
0
'double' nest form fields with accepts_nested_attributes_for
...' nest form fields with accepts_nested_attributes_for? Something like: [code=ruby]<% form_for parent do |parent_form| %> <% parent_form.fields_for parent_children do |parent_children_fields| %> ... <% parent_children_fields.fields_for parent_child_activities do | parent_child_activities_fields| %> ...[/code] Rough example but should be enough for demonstration. What I''m trying to do is form a many to many join between parent and child while simultaneously creating a join to their activities. A parent has many children. A child has many parents. Parents and childr...