small medium large xlarge

Poser_pragsmall
23 Feb 2009, 22:06
michael chizzo (2 posts)

Getting this trying to work out the new cart stuff: NameError in StoreController#add_to_cart

uninitialized constant Cart::CartItem

Application Trace | Framework Trace | Full Trace /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:493:in const_missing' app/models/cart.rb:14:in add_product’ app/controllers/store_controller.rb:17:in `add_to_cart’

Copied and pasted from Depot_G, and Depot_h trying to move past this but no love. So if I have copied the text files from the prag site, what else could it be? Tried rake db:sessions:clear but that did no thelp.

M_4e42a462e8a41de79cd9b0eea5d4fa47_pragsmall
27 Feb 2009, 17:20
Keith B Scales Jr (1 post)

Make sure your CartItem Model is named Cart_Item.rb and not CartItem.rb

You must be logged in to comment