Listing products

<% @products.each do |product| %> <% end %>
Name Code Price
<%= product.name %> <%= product.code %> <%= product.price %> <%= link_to 'Show', product %> <%= link_to 'Edit', edit_product_path(product) %> <%= link_to 'Destroy', product, method: :delete, data: { confirm: 'Are you sure?' } %>

<%= link_to 'New Product', new_product_path %>