skill-assessment-app/app/views/quiz/_text.html.erb
2016-08-08 07:45:08 -05:00

9 lines
371 B
Plaintext

<% hidden = params[:action] == 'summary' ? 'hidden' : '' %>
<label for="answer_text">Enter answer here</label>
<textarea id="answer_text" name="answer[text]" rows="10"><%= question.answer %></textarea>
<div class="chars <%= hidden %>">Characters remaining: <span></span></div>
<%= render partial: "quiz/answer_errors", locals: {question: question, answer: @answer} %>