skill-assessment-app/app/views/shared/_form_model_errors.html.erb

11 lines
229 B
Plaintext
Raw Permalink Normal View History

2016-08-19 16:42:06 -05:00
<% 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 %>