21 lines
351 B
Plaintext
21 lines
351 B
Plaintext
|
<h1>New customer</h1>
|
||
|
|
||
|
<%= error_messages_for :customer %>
|
||
|
|
||
|
<% form_for(:customer, :url => customers_path) 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 "Create" %>
|
||
|
</p>
|
||
|
<% end %>
|
||
|
|
||
|
<%= link_to 'Back', customers_path %>
|