Created tables, product scaffold
[depot.git] / app / views / products / show.html.erb
diff --git a/app/views/products/show.html.erb b/app/views/products/show.html.erb
new file mode 100644 (file)
index 0000000..a5f0eac
--- /dev/null
@@ -0,0 +1,18 @@
+<p>
+  <b>Title:</b>
+  <%=h @product.title %>
+</p>
+
+<p>
+  <b>Description:</b>
+  <%=h @product.description %>
+</p>
+
+<p>
+  <b>Image url:</b>
+  <%=h @product.image_url %>
+</p>
+
+
+<%= link_to 'Edit', edit_product_path(@product) %> |
+<%= link_to 'Back', products_path %>