Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

30 wiersze
650 B

  1. <p id="notice"><%= notice %></p>
  2. <h1>Line Items</h1>
  3. <table>
  4. <thead>
  5. <tr>
  6. <th>Product</th>
  7. <th>Cart</th>
  8. <th colspan="3"></th>
  9. </tr>
  10. </thead>
  11. <tbody>
  12. <% @line_items.each do |line_item| %>
  13. <tr>
  14. <td><%= line_item.product %></td>
  15. <td><%= line_item.cart %></td>
  16. <td><%= link_to 'Show', line_item %></td>
  17. <td><%= link_to 'Edit', edit_line_item_path(line_item) %></td>
  18. <td><%= link_to 'Destroy', line_item, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  19. </tr>
  20. <% end %>
  21. </tbody>
  22. </table>
  23. <br>
  24. <%= link_to 'New Line Item', new_line_item_path %>