9 lines
211 B
Plaintext
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 %>
|