%= form_for(@contract) do |f| %>
<% if @contract.errors.any? %>
<%= pluralize(@contract.errors.count, "error") %> prohibited this contract from being saved:
<% @contract.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :customer_id %>
<%= f.number_field :customer_id %>
<%= f.label :date %>
<%= f.text_field :date %>
<%= f.label :expire %>
<%= f.text_field :expire %>
<%= f.label :payment %>
<%= f.text_field :payment %>
<%= f.label :amount %>
<%= f.number_field :amount %>
<%= f.label :detail %>
<%= f.text_field :detail %>
<%= f.submit %>
<% end %>