Sha256: 6731b8c23f29967aaa7a466b813225b96894bec57ae0f789f2569e3d10e4950b
Contents?: true
Size: 768 Bytes
Versions: 1
Compression:
Stored size: 768 Bytes
Contents
<h1>Shopping Cart</h1> <% unless @cart.line_items.any? %> <p>You don't have any items in your cart. <%= link_to "Go Add Some", products_path %> <% end %> <table width="100%"> <tr> <th>Print</th> <th>Price</th> </tr> <% for line_item in @cart.line_items %> <tr> <td><%= line_item.product.name %></td> <td><%= number_to_currency line_item.price %></td> <td><%= link_to "Remove", remove_from_cart_path(line_item), :method => :post %></td> </tr> <% end %> <tr> <td>Total:</td> <td><%= number_to_currency @cart.total_price %></td> </tr> </table> <hr /> <%= form_tag checkout_path, :style => "text-align: right" do |f| %> <%= link_to "Continue Shopping", root_path %> or <%= submit_tag "Checkout" %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ecom-0.2.0 | app/views/ecom/cart/show.html.erb |