a977c0ceb3
completes #60
9 lines
410 B
Plaintext
9 lines
410 B
Plaintext
<% answer = answer.respond_to?(:answer) ? answer.answer : answer %>
|
|
|
|
<label for="answer_answer">Enter answer here</label>
|
|
<%= text_area_tag 'answer[answer]', answer, {rows: 10, data: { last: answer } } %>
|
|
|
|
<div class="chars <%= params[:action] == 'summary' ? 'hidden' : '' %>">Characters remaining: <span></span></div>
|
|
|
|
<%= render partial: "quiz/answer_errors", locals: {question: question, answer: answer} %>
|