tap/app/views/products/show.html.erb
2014-12-04 20:32:31 +01:00

11 lines
282 B
Text

<aside>
<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>
<%= link_to "edit", edit_product_path(@product) %>
</aside>