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 %>
|