In my Rails app (running on rails 2.3.5, ruby 1.8.7), my application_controller.rb file is not being loaded automatically when config.cache_classes = false in environment.rb.
It’s in the load path. If I add require 'application_controller' to the end of my environment.rb or set cache_classes = true, then the app works fine.
Why wouldn’t it load when classes are not being cacehed?
This sounds like it for some reason your app is still using 2.3.2 gems for
ActiveSupport. It is probably still looking forapplication.rb, and the undefinedpretty_inspectalso lends itself to a versioning problem.First, make sure that you don’t have something like this at the top of your
environment.rb:If you don’t, then at the bottom of the your
environment.rbfind out if something else is setting it wrong by adding this: