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

9 lines
211 B
Plaintext
Raw Normal View History

2016-08-19 16:42:06 -05:00
<% if flash[:error].present? %>
<div class="error">
<%= flash[:error] %>
2017-03-20 10:57:50 -05:00
<% obj.errors.messages.each do |k,v| %>
<div><%= "#{k.to_s} #{v.join(' and ')}" %></div>
<% end %>
2016-08-19 16:42:06 -05:00
</div>
<% end %>