search for: event_type_form

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

2010 Jun 24
0
Nested Model Forms
..._nested_attributes_for :events event: belongs_to :event_type controller new action has ... @event_category.event_types.build @event_category.event_types[0].events.build Forms: event_categories/new.html.erb <% form ...... do |form| %> <% form.fields_for :event_types do |event_type_form| %> <% event_type_form.fields_for :events do |event_form| %> <% @time_units.each do |time_unit| %> <% name = time_unit.name; id = time_unit.id %> <%= event_form.check_box ''time_unit_ids[]'', { :id => name }, time_unit.id...