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