tap/app/views/products/index.html.erb
2014-11-25 13:09:55 +01:00

9 lines
161 B
Text

<h1>All products</h1>
<ul class="products">
<% @products.each do |product| %>
<li>
<%= link_to product.name, product %>
</li>
<% end %>
</ul>