DistroPropaganda/code/rails31/depot_h/app/views/carts/index.html.erb
2018-11-24 13:20:20 +01:00

21 lines
387 B
Text

<h1>Listing carts</h1>
<table>
<tr>
<th></th>
<th></th>
<th></th>
</tr>
<% @carts.each do |cart| %>
<tr>
<td><%= link_to 'Show', cart %></td>
<td><%= link_to 'Edit', edit_cart_path(cart) %></td>
<td><%= link_to 'Destroy', cart, confirm: 'Are you sure?', method: :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Cart', new_cart_path %>