Displaying 1 result from an estimated 1 matches for "person_questions_attribut".
Did you mean:
person_questions_attributes
2012 Sep 29
0
rails 3.2 nested form names not correct
...) %>
<%= pregunta.hidden_field :question_id, :value => question.id , :class
=> "#{question.data_type}" %>
</div>
</div>
Is there a way to get the attribute names to be correct?
The questions come from the db.
chrome inspector:
<input id="person_person_questions_attributes_0_option_selected"
name="person[person_questions_attributes][0][option_selected]"
type="checkbox" value="1">
<input id="person_person_questions_attributes_0_option_selected"
name="person[person_questions_attributes][0][option_selected]&qu...