Displaying 2 results from an estimated 2 matches for "person_quest".
2012 Oct 06
0
rails 3.2 question/answer with a through table
I have a person has many questions through person_questions. I have an
extra column in the join table for the answer. The section below works for
a new submit but when I edit I get 3 each with the first 2 of each selected
tand the third not so I get 6 check boxes some selected some not. Is there
a way to get this to work properly os just the que...
2012 Sep 29
0
rails 3.2 nested form names not correct
I have a person has many questions model, I have accepts_nested_Attributes
set up properly. the question from the db show up, but the index is not
incrementing:
<%= f.fields_for :person_questions do |pregunta| %>
Questions: <br/>
<% Question.all.each do |question| %>
<%= render ''questions/question_type'', :pregunta => pregunta,
:question => question, :f => f %>
<% end %>
<% end %&g...