search for: preference_form

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

2011 Jul 11
2
Pre-populating association
...lot.preferences << p end respond_to do |format| format.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&q...