Almost done!

Now's the time to review your answers and go back and change any, if you need to. Once you're done, hit the button at the bottom of the page to submit your answers.

<% @quiz.each do |question| %> <%= form_for(:answer, url: post_answer_path(answer_id: question.answer_id, qid: question.question_id), html:{class: 'summary-form'}) do |form| %>

<%= question.question %>

Edit
<%= hidden_field_tag 'answer[question_id]', question.question_id %> <%= render partial: question.input_type, locals: {question: question, form: form} %>
<% end #questions loop %> <% end #form_tag %> <% if @status.can_submit %>
<% else %>
Sorry, you must answer all questions before you can submit.
<% end %>