Sha256: 015e9fdda592dbc3aaf1fe026fd887d2f8902966bfb3ad4282e84da2a4e92ef9
Contents?: true
Size: 647 Bytes
Versions: 5
Compression:
Stored size: 647 Bytes
Contents
<p id="products-index"></p> <h1>Listing Products</h1> <table id="products-table"> <thead> <tr> <th>Name</th> <th>Price</th> <th colspan="3"></th> </tr> </thead> <tbody> <% @products.each do |product| %> <tr> <td><%= product.name %></td> <td><%= product.price %></td> <td><%= link_to 'Show', product %></td> <td><%= link_to 'Edit', edit_product_path(product) %></td> <td><%= link_to 'Destroy', product, method: :delete, data: { confirm: 'Are you sure?' } %></td> </tr> <% end %> </tbody> </table> <br> <%= link_to 'New Product', new_product_path %>
Version data entries
5 entries across 5 versions & 1 rubygems