skill-assessment-app/app/views/shared/_form_model_errors.html.erb
2017-06-05 11:30:34 -05:00

9 lines
211 B
Plaintext

<% if flash[:error].present? %>
<div class="error">
<%= flash[:error] %>
<% obj.errors.messages.each do |k,v| %>
<div><%= "#{k.to_s} #{v.join(' and ')}" %></div>
<% end %>
</div>
<% end %>