cours0708/P5B/ruby/mon_projet/app/views/admin/addresses/new.rhtml

31 lines
493 B
Plaintext
Raw Permalink Normal View History

2008-11-25 21:11:16 +00:00
<h1>New address</h1>
<%= error_messages_for :address %>
<% form_for(:address, :url => addresses_path) 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 "Create" %>
</p>
<% end %>
<%= link_to 'Back', addresses_path %>