Editing supplier

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

Name
<%= f.text_field :name %>

Description
<%= f.text_area :description %>

Code
<%= f.text_field :code %>

Created at
<%= f.datetime_select :created_at %>

Updated at
<%= f.datetime_select :updated_at %>

<%= submit_tag "Update" %>

<% end %> <%= link_to 'Show', supplier_path(@supplier) %> | <%= link_to 'Back', suppliers_path %>