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), html:{class: 'summary-form'}) do |form| %>

<%= question.question %>

Edit
<% if question.attachment.present? %> <%= image_tag question.attachment %> <% end %>
<%= hidden_field_tag 'answer[question_id]', question.question_id %> <%= render partial: question.input_type, locals: {question: question, form: form} %>
<% end %> <% end %> <% if @status.can_submit %> <%= form_tag post_summary_path, class: "btn-container-right" do %> <% end %> <% else %>
Sorry, you must answer all questions before you can submit.
<% end %>