%# http://railscasts.com/episodes/211-validations-in-rails-3 %>
<% if target.errors.any? %>
<%= pluralize(target.errors.count, "error") %> prohibited this record from being saved:
<% target.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>