%= 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.label :name %>
<%= f.text_field :name %>
<%= f.submit %>
<% end %>