Displaying 1 result from an estimated 1 matches for "schedule_attribut".
Did you mean:
schedule_attributes
2009 Oct 06
1
Problems Processing multiple form elements generated by javascript actions
...<%= f.submit ''Update My Profile'' %>
<% end %>
User#_schedule.html.erb
<div class="schedule">
<% new_or_existing = schedule.new_record? ? ''new'' : ''existing'' %>
<% prefix = "user[#{new_or_existing}_schedule_attributes][]" %>
<% fields_for prefix, schedule do |schedule_form| -%>
<%= error_messages_for :schedule, :object => schedule %>
<p><%= schedule_form.collection_select :market_id,
Market.all, :id, :name, {:prompt => true} %></p>
<p><...