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

32 lines
583 B
Plaintext

<h1>Editing address</h1>
<%= error_messages_for :address %>
<% form_for(:address, :url => address_path(@address), :html => { :method => :put }) do |f| %>
<p>
<b>Street</b><br />
<%= f.text_area :street %>
</p>
<p>
<b>Postal code</b><br />
<%= f.text_field :postal_code %>
</p>
<p>
<b>City</b><br />
<%= f.text_field :city %>
</p>
<p>
<b>Country</b><br />
<%= f.text_field :country %>
</p>
<p>
<%= submit_tag "Update" %>
</p>
<% end %>
<%= link_to 'Show', address_path(@address) %> |
<%= link_to 'Back', addresses_path %>