Displaying 1 result from an estimated 1 matches for "question_form".
2011 Jul 11
2
Pre-populating association
...rmat.html # new.html.erb
format.xml { render :xml => @ballot }
end
end
and on the ballot/new.html.erb page, I try this:
<%= form_for [@survey, @ballot] do |f| %>
<%= f.fields_for :preferences do |preference_form| %>
<%= preference_form.fields_for :question do |question_form| %>
<p>
<%= question_form.label :question %><br />
<%= radio_button("preference", "preference", "Yes") %> Yes
<%= radio_button("preference", "preference", "No") %> No
<%= radio_...