9 lines
371 B
Plaintext
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} %>
|