Quiz Review

Test ID: <%= @candidate.test_hash %>
Years of Experience: <%= @candidate.experience %>
Recruiter Email: <%= mail_to @candidate.recruiter.name, @candidate.recruiter.email %>

<% @quiz.each do |question| %> <%= form_for(:answer, url: post_summary_path, html:{id: 'summary-form'}) do |form| %>

<%= question.question %>

<%= hidden_field_tag 'answer[question_id]', question.question_id %> <%= render partial: "candidate/#{question.input_type}", locals: {question: question, form: form} %>
<% end #form_tag %> <% end #questions loop %> <%= link_to(review_path, { class: 'secondary-btn' }) do %> <% end %>