2016-08-08 17:08:20 -05:00
|
|
|
<%
|
2016-08-11 17:10:51 -05:00
|
|
|
answers = answer.respond_to?(:answer) ? answer.answer : answer
|
2016-08-08 17:08:20 -05:00
|
|
|
%>
|
2016-08-05 09:52:11 -05:00
|
|
|
|
2016-07-30 16:25:09 -05:00
|
|
|
<label for="answer_text">Enter answer here</label>
|
2016-08-09 23:17:35 -05:00
|
|
|
<%= text_area_tag 'answer[text]', answers, {rows: 10, data: { last: answers } } %>
|
2016-07-27 22:16:12 -05:00
|
|
|
|
2016-08-09 23:17:35 -05:00
|
|
|
<div class="chars <%= params[:action] == 'summary' ? 'hidden' : '' %>">Characters remaining: <span></span></div>
|
2016-07-27 22:16:12 -05:00
|
|
|
|
2016-08-08 17:08:20 -05:00
|
|
|
<%= render partial: "quiz/answer_errors", locals: {question: question, answer: answer} %>
|