tap/app/views/orders/new.html.erb
2014-12-08 17:56:48 +01:00

10 lines
318 B
Text

<%= @user.name %>
<%= form_for( @order, url: user_orders_path(@user)) do |f| %>
<%= render 'application/errors', model: @order %>
<%= f.fields_for :order_products do |op_field| %>
<%= render 'order_products/form_row', f: op_field %>
<% end %>
<%= f.submit "Order", class: "btn btn-primary " %>
<% end %>