skill-assessment-app/app/views/quiz/_text.html.erb

9 lines
431 B
Plaintext
Raw Permalink Normal View History

<% answer_string = answer.respond_to?(:answer) ? answer.answer : answer %>
2016-09-02 17:51:35 -05:00
<label for="answer_answer">Enter answer here</label>
<%= text_area_tag 'answer[answer]', answer_string, {rows: 10, data: { last: answer_string } } %>
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} %>