Add registrar area form errors

This commit is contained in:
Artur Beljajev 2017-04-13 18:42:50 +03:00
parent f592adcf06
commit 5a542d3c67

View file

@ -0,0 +1,11 @@
<% if target.errors.any? %>
<div class="alert alert-danger">
<p><%= pluralize(target.errors.count, 'error') %> prohibited this <%= target.model_name.human.downcase %> from being saved:</p>
<ul>
<% target.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>