Forum: Ruby on Rails Unitialized constant

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Doug H. (Guest)
on 2006-01-25 00:24
(Received via mailing list)
In Agile Web D. with Rails, I get this error when adding a
product to my cart:

uninitialized constant Cart
...
Application Trace:
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/
active_support/dependencies.rb:200:in `const_missing'
./public/../config/../app/controllers/store_controller.rb:21:in
`find_cart'
./public/../config/../app/controllers/store_controller.rb:9:in
`add_to_cart'

This error occured while loading the following files:
    cart.rb

Any ideas what I did wrong? I can't find a problem with "find_cart"
or "add_to_cart". My cart.rb class has been created.

Thanks,
Doug
This topic is locked and can not be replied to.