<%= question.question %> <% if question.attachment.present? %> <%= image_tag question.attachment %> <% end %> <%= render partial: "quiz/#{question.input_type}", locals: {question: question, answer: question.answer, form: form} %>
Comments
<%= render partial: 'comment', collection: @comments, locals: { test_hash: @candidate.test_hash } %>