<%= form_for(@entity) do |f| %> <% if @entity.errors.any? %>

<%= pluralize(@entity.errors.count, "error") %> prohibited this entity from being saved:

<% end %>
<%= f.submit %>
<% end %>