#index.glass-look %h1 Items in your order %table#cart %thead %tr %th Product %th Quantity %th Unit Price %th Line Price %th %th %th %tbody - @orders_products.each do |orders_product| %tr %td= orders_product.product.name %td= orders_product.quantity %td= orders_product.quoted_unit_price %td= orders_product.full_line_price %td= link_to 'Show', orders_product %td= link_to 'Edit', edit_orders_product_path(orders_product) %td= link_to 'Delete', orders_product, method: :delete, data: { confirm: 'Are you sure?' } %tfoot %tr %td{:colspan=>2}='Total' %td=@order.orders_products.sum(:full_line_price).to_s #actions.small-text = link_to 'New Order product', new_order_orders_product_path(@order) #payment-options.big-text =# link_to 'Pay via PayPal',@order.paypal_url(order_path(@order)) = link_to 'Pay via Credit Card',pay_via_braintree_path(@order)