master
<% if target.errors.any? %> <div> <b><%= pluralize(target.errors.count, "error") %> prevented this record from being saved:</b> <ul> <% target.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %>