Displaying 1 result from an estimated 1 matches for "prioduct".
Did you mean:
iproduct
2009 Nov 01
5
Headache with sessions being shared.
...ct 1''s in their cart.
user 2 adds product 2
user 2 should now have 1 x product 1 and 1 x product 2
But user 2 has 0 x product 1 and 1 x product 2
user 1 now adds product 2 to their cart
user 2 refreshes and has 2 x product 2
Now at this point both user 1 and user 2 should have 1 of each prioduct
in their cart.
Controller action for this is
def add_to_cart
product = Product.find(params[:id])
@cart = find_cart
@cart.add_product(product)
redirect_to_category_menu
rescue ActiveRecord::RecordNotFound
logger.error("Attempt to access invalid product #{params[:id]}&qu...