skill-assessment-app/app/views/shared/_form_model_errors.html.erb
2016-08-22 16:26:21 -05:00

11 lines
229 B
Plaintext

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