%= form_for(@entity) do |f| %>
<% if @entity.errors.any? %>
<%= pluralize(@entity.errors.count, "error") %> prohibited this entity from being saved:
<% @entity.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.submit %>
<% end %>