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