In 8.2, I was following through doing fine until I came to the point where I added the add_to_cart method in store_controller.rb and tried to test it. When I click on an “Add to Cart” button in the store, I get the following error:
NameError in StoreController#add_to_cart uninitialized constant StoreController::Cart
I am sure it’s something obvious, but I can’t figure it out.
Any suggestions where I should be looking?