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