app/views/shared/_errors.html.erb
<% if subject.errors.any? %>
<div id="error_explanation" class="alert alert-danger" role="alert">
<h4><%= pluralize(subject.errors.count, "error") %> prohibited this <%= subject_name %> from being saved:</h4>
<ul>
<% subject.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>