22 lines
445 B
Plaintext
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 %>
|