<%% if resource.errors.any? -%>

<%%= "#{pluralize(resource.errors.count, "error")} prohibited this #{resource.class.name.titleize} from being saved:" %>

<%% end -%>