15 Jan 2010, 01:58
Generic-user-small

Joe Greenseid (2 posts)

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?

Thanks, –Joe

17 Jan 2010, 20:30
Generic-user-small

Joe Greenseid (2 posts)

I knew it would be something stupid. The file cart.rb was named “cart.db” I kept looking at the contents of the file, but not the filename itself. Heh…

  You must be logged in to comment