app/controllers/cart_controller.rb in ecommerce-0.0.2 vs app/controllers/cart_controller.rb in ecommerce-0.0.3

- old
+ new

@@ -8,11 +8,10 @@ end def update cart = find_cart() - if params.key?('quantity_total_update') && params.key?('cart_item') # We are updating the total quantity of multiple items in teh cart. This is likely from teh cart page where # the user has updated the quantity text fields and clicked 'Update Cart' params['cart_item'].each do |item_id, data| cart_item = CartItem.find_by_id(item_id) @@ -37,6 +36,9 @@ session[:cart] = nil flash[:notice] = "Your cart has been emptied." redirect_to :back end + def confirmation + + end end