small medium large xlarge

Generic-user-small
10 Feb 2014, 18:31
Austin Thompson (2 posts)

I’m trying to get multiple products to show up, but every time I click Add to Cart, a new cart is created rather than adding a new line item to the current cart. I have double checked that all my code is the same as what is in the book, are there any common mistakes that are made during this iteration that might cause this?

Thanks for any help.

Generic-user-small
10 Feb 2014, 19:00
Austin Thompson (2 posts)

Answered my own question, there was a formatting issue with my curret_cart.rb file. Something was off with my tabs.

Generic-user-small
18 Nov 2015, 21:10
Patrick Karjala (4 posts)

I ran into the same issue, but my solution was different. I had to close my currently running rails server and start it again. After doing this, it correctly added new items to the same cart instead of creating a new cart each time.

You must be logged in to comment