Ok I have done ruby script/console and typed RAILS_ENV and it came back
with development..Was this the way to do it?
Yes, that's one way to do it ... also, as per your previous post, if the development.log is growing but the production.log stays empty, then Rails is definitely running in development mode. I just re-read your original post in more detail, and noticed your very last comment, which I missed the first time around:
In case it matters the cart
model is just 'class Cart' not something like 'class Cart <
Yes, it matters quite a lot, actually. Rails will only reload AR model classes, ie. classes that inherit from ActiveRecord::Base... for non-ActiveRecord model classes, you need to help Rails out a bit:
If you want Rails to reload a model that isn't a subclass of ActiveRecord::Base, you used to add the following declaration in a controller:
That syntax is now deprecated in favor of adding the following declaration in your model file:
See also: http://clarkware.com/cgi/blosxom/2006/03/28
Let us know how it goes!