tap/app/views/products/show.html.erb

12 lines
282 B
Text
Raw Normal View History

2014-11-24 21:45:32 +01:00
<aside>
2014-11-25 13:09:55 +01:00
<p>Products#show</p>
<p>Name: <%= @product.name %></p>
<p>Purchase price: <%= @product.purchase_price %> </p>
<p>Sale price: <%= @product.sale_price %> </p>
<p><%= image_tag @product.avatar %></p>
2014-11-25 13:09:55 +01:00
<%= link_to "edit", edit_product_path(@product) %>
2014-11-24 21:45:32 +01:00
</aside>