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

6 lines
197 B
Plaintext

<% if flash[:answer_error] == question.question_id && answer.present? %>
<% answer.errors.messages[:answer].each do |message| %>
<div class="error"><%= message %></div>
<% end %>
<% end %>