Forum: Ruby on Rails Upgrade problem to Rails 1.2.2 with RADRails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
7c66f420afb18b862b28081dc8d4e86f?d=identicon&s=25 kerbo (Guest)
on 2007-02-20 19:56
(Received via mailing list)
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'
dependencies.rb:452:in `const_missing'
dependencies.rb:464:in `const_missing'

Any ideas?
8da92d4ed91aa12535f6d870fa76b25e?d=identicon&s=25 Aaron (Guest)
on 2007-02-20 21:20
(Received via mailing list)
Are you using engines?  If so the engine code is not ready for 1.2.2.

3299251223f55753ec84719de39e6e53?d=identicon&s=25 Jon Garvin (Guest)
on 2007-02-20 21:22
(Received via mailing list)
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.
8310c5a7c769345114597bcdef111488?d=identicon&s=25 Ben Munat (Guest)
on 2007-02-21 06:28
(Received via mailing list)
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?

This topic is locked and can not be replied to.