projects
/
depot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added availability date to product table
[depot.git]
/
app
/
views
/
products
/
show.html.erb
diff --git
a/app/views/products/show.html.erb
b/app/views/products/show.html.erb
index a5f0eac8b6a295687cc4eee5913c7638bb8f29fc..fb3631e331d8ba8c51461de4f457f0493fd742e3 100644
(file)
--- a/
app/views/products/show.html.erb
+++ b/
app/views/products/show.html.erb
@@
-13,6
+13,16
@@
<%=h @product.image_url %>
</p>
+<p>
+ <b>Price:</b>
+ <%=h @product.price %>
+</p>
+
+<p>
+ <b>Date available:</b>
+ <%=h @product.date_available %>
+</p>
+
<%= link_to 'Edit', edit_product_path(@product) %> |
<%= link_to 'Back', products_path %>