<%= 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 } %> <% if policy(QuizComment).new? %> <%= render partial: 'comment_form', locals: {comment: @comment, test_hash: @candidate.test_hash } %> <% end %>