search for: redirect_to_category_menu

Displaying 1 result from an estimated 1 matches for "redirect_to_category_menu".

2009 Nov 01
5
Headache with sessions being shared.
...ds 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]}" ) redirect_to_category_menu ''Invalid product'' end I''m using database storage for the session. This is a total nightmare and I have just lost all my c...