cours0708/P5B/ruby/mon_projet/app/views/admin/customers/edit.rhtml
2008-11-25 22:11:16 +01:00

22 lines
445 B
Plaintext

<h1>Editing customer</h1>
<%= error_messages_for :customer %>
<% form_for(:customer, :url => customer_path(@customer), :html => { :method => :put }) do |f| %>
<p>
<b>Firstname</b><br />
<%= f.text_field :firstname %>
</p>
<p>
<b>Name</b><br />
<%= f.text_field :name %>
</p>
<p>
<%= submit_tag "Update" %>
</p>
<% end %>
<%= link_to 'Show', customer_path(@customer) %> |
<%= link_to 'Back', customers_path %>