Displaying 1 result from an estimated 1 matches for "save_schedules".
2009 Oct 06
1
Problems Processing multiple form elements generated by javascript actions
...rm.check_box :thursday %>
<%= schedule_form.check_box :friday %>
<%= schedule_form.check_box :saturday %>
<%= schedule_form.check_box :sunday %>
<% end -%>
</div>
User Model:
validates_associated :schedules, :on => :update
after_update :save_schedules
accepts_nested_attributes_for :schedules, :allow_destroy => :true,
:reject_if => :all_blank
def new_schedule_attributes=(schedule_attributes)
schedule_attributes.each do |attributes|
schedules.build(attributes)
end
end
def existing_schedule_attributes=(schedule_...