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