31 lines
493 B
Plaintext
31 lines
493 B
Plaintext
<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 %> |