Not sure why this isn't working

"Chris Olsen" wrote:

[snip]

def remove_product(id)

  existing_product = find_product_in_cart(id)

  if existing_product     if existing_product.quantity > 1       existing_product.decrement_quantity     else

  existing_product = nil

Here you are just setting the local var to nil. To correct this you should do something along the line of:

@items.remove(existing_product)

hth,

Long