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

21 lines
351 B
Plaintext
Raw Permalink Normal View History

2008-11-25 21:11:16 +00:00
<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 %>