Skip to content

Commit

Permalink
Display Product details in View
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanbibat committed Jun 1, 2014
1 parent 997e318 commit b28eaf6
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions app/views/products/show.html.erb
@@ -1,2 +1,21 @@
<h1>Products#show</h1>
<p>Find me in app/views/products/show.html.erb</p>
<h1>Show Product</h1>

<p>
<strong>Name:</strong>
<%= @product.name %>
</p>

<p>
<strong>Description:</strong>
<%= @product.description %>
</p>

<p>
<strong>Cost:</strong>
<%= number_to_currency(@product.cost, {:unit => 'PhP'}) %>
</p>

<p>
<strong>Stock:</strong>
<%= @product.stock %>
</p>

0 comments on commit b28eaf6

Please sign in to comment.