11 lines
229 B
Plaintext
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 %>
|