= form_for @contact do |f| - if @contact.errors.any? #error_explanation h2 = "#{pluralize(@contact.errors.count, "error")} prohibited this contact from being saved:" ul - @contact.errors.full_messages.each do |message| li = message .field = f.label :client_id = f.text_field :client_id .field = f.label :name = f.text_field :name .field = f.label :phone = f.text_field :phone .field = f.label :email = f.text_field :email .field = f.label :view_at = f.date_select :view_at .field = f.label :note = f.text_area :note .field = f.label :region = f.text_field :region .field = f.label :department = f.text_field :department .field = f.label :postal_code = f.text_field :postal_code .field = f.label :address = f.text_area :address .actions = f.submit