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

6 lines
194 B
Plaintext
Raw Permalink Normal View History

2016-08-09 23:17:35 -05:00
<% if flash[:error] == question.question_id && answer.try(:errors) %>
2016-08-01 09:50:01 -05:00
<% answer.errors.messages[:answer].each do |message| %>
<div class="error"><%= message %></div>
<% end %>
<% end %>