Upgrade problem to Rails 1.2.2 with RADRails

I upgraded to Rails 1.2.2 and my project inside of RADRails stopped
working. I think I followed the steps in the upgrade process
correclty. The problem occurs when accessing the first page. I get the

Expected ./script/…/config/…/app/controllers/main_controller.rb to
define MainController

dependencies.rb:249:in load_missing_constant' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/ dependencies.rb:452:inconst_missing’
dependencies.rb:464:in `const_missing’

Any ideas?

Are you using engines? If so the engine code is not ready for 1.2.2.


That looks very much like a problem we were having. In our case, as of
Rails 1.2, any modules loaded from the /lib directory needed to be
explicitly required in the class file doing the calling. However, I
haven’t seen that with a controller before. The “expected ____ to
define ____” part of your error though is exactly the same thing we were
seeing and a properly placed ‘require’ corrected it for us.

Well, when I’ve seen that “Expected blah to define Blah” error before,
it’s always been because I was really not defining that class in that
file. Does main_controller.rb exist where it thinks it should; does that
file define MainController?