<%= flash[:notice] %>
diff --git a/app/views/products/index.html.erb b/app/views/products/index.html.erb index 2b450ba..5601f97 100644 --- a/app/views/products/index.html.erb +++ b/app/views/products/index.html.erb @@ -1,5 +1,11 @@ + +<%= product.id %> | <%= product.name %> | -$<%= product.price %> | +$<%= product.price %> | <%= product.user.name if product.user.present? %> | +<%= link_to "+", product_path(product), + 'data-price' => product.price, + 'data-incr-price' => product.id, + :method => :put %> |