<%= form_for :contact, url: contacts_path, remote: true do |f| %>
<%= f.text_field :first_name, placeholder: "first name" %>
<%= f.text_field :last_name, placeholder: "last name" %>
<%= f.submit "Save", name: 'save', class: "btn btn-primary" %>
Cancel
<% end %>