%= form_for @order do |f| %>
<% if @order.errors.any? %>
<%= pluralize(@order.errors.count, "error") %>
prohibited this order from being saved:
<% @order.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :name, "Name:" %>
<%= f.text_field :name, :size => 40 %>
<%= f.label :address, "Address:" %>
<%= f.text_area :address, :rows => 3, :cols => 40 %>
<%= f.label :email, "E-Mail:" %>
<%= f.email_field :email, :size => 40 %>
<%= f.label :pay_type, "Pay with:" %>
<%=
f.select :pay_type,
Order::PAYMENT_TYPES,
:prompt => "Select a payment method"
%>
<%= f.submit "Place Order" %>
<% end %>