Editing customer

<%= error_messages_for :customer %> <% form_for(:customer, :url => customer_path(@customer), :html => { :method => :put }) do |f| %>

Firstname
<%= f.text_field :firstname %>

Name
<%= f.text_field :name %>

<%= submit_tag "Update" %>

<% end %> <%= link_to 'Show', customer_path(@customer) %> | <%= link_to 'Back', customers_path %>