johnhamelink
2/4/2014 - 3:05 PM

_question_answer_fields.html.erb

<div class="fields">
  <p>
    <div class="input string optional challenge_questions_1391526042286_answers_answer"><input class="string optional" id="challenge_questions_attributes_1391526042286_answers_attributes_new_answers_answer" name="challenge[questions_attributes][1391526042286][answers_attributes][new_answers][answer]" placeholder="Answer" type="text" /></div>
    <div class="input boolean optional challenge_questions_1391526042286_answers_correct"><input name="challenge[questions_attributes][1391526042286][answers_attributes][new_answers][correct]" type="hidden" value="0" /><label class="boolean optional control-label checkbox" for="challenge_questions_attributes_1391526042286_answers_attributes_new_answers_correct"><input class="boolean optional" id="challenge_questions_attributes_1391526042286_answers_attributes_new_answers_correct" name="challenge[questions_attributes][1391526042286][answers_attributes][new_answers][correct]" type="checkbox" value="1" />Correct</label></div>
    <input id="challenge_questions_attributes_1391526042286_answers_attributes_new_answers__destroy" name="challenge[questions_attributes][1391526042286][answers_attributes][new_answers][_destroy]" type="hidden" value="false" /><a class="remove_field" href="#">remove</a>
  </p>
</div>