cours0708/P5B/ruby/mon_projet/app/views/admin/customers/edit.rhtml

22 lines
445 B
Plaintext
Raw Permalink Normal View History

2008-11-25 21:11:16 +00:00
<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 %>