simple question attachments

This commit is contained in:
Mark Moser
2016-08-03 08:55:30 -05:00
parent a3eab2b27a
commit f4abe5e281
7 changed files with 28 additions and 5 deletions

View File

@ -9,6 +9,10 @@
<main class="answer-sec <%= @question.input_type %>-type questions_tpl" data-qid="<%= @question.question_id %>">
<h2 class="question-text"><%= @question.question %></h2>
<% if @question.attachment.present? %>
<%= image_tag @question.attachment %>
<% end %>
<div class="content-well">
<%= hidden_field_tag 'answer[question_id]', @question.question_id %>
<%= hidden_field_tag 'answer[answer_id]', @question.answer_id %>