X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;ds=sidebyside;f=app%2Fviews%2Fproducts%2Findex.html.erb;fp=app%2Fviews%2Fproducts%2Findex.html.erb;h=88120ee7e05a27a417f52f7b280dd760a9ecc1a8;hb=e580d4626176c8deb6f44fec7e66f980b5923b29;hp=0000000000000000000000000000000000000000;hpb=28668145b30d983f624bebb24e9ac9c23d9b13cd;p=depot.git diff --git a/app/views/products/index.html.erb b/app/views/products/index.html.erb new file mode 100644 index 0000000..88120ee --- /dev/null +++ b/app/views/products/index.html.erb @@ -0,0 +1,24 @@ +
Title | +Description | +Image url | +|||
---|---|---|---|---|---|
<%=h product.title %> | +<%=h product.description %> | +<%=h product.image_url %> | +<%= link_to 'Show', product %> | +<%= link_to 'Edit', edit_product_path(product) %> | +<%= link_to 'Destroy', product, :confirm => 'Are you sure?', :method => :delete %> | +