Forum: Ruby on Rails problems in script/console after reload!

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.
Vlad R. (Guest)
on 2007-01-23 21:38
(Received via mailing list)

My application is working fine. But when I try to go to script/console
strange things happens...

All controllers are broken just after hitting "reload!". I think it is
because of ApplicationController. When I try to init any controller it
says "NameError: uninitialized constant ApplicationController".

ApplicationController is located in app/controllers/application.rb,
Rails v. 1.1.6

Here is log:

ruby script/console

Loading development environment.
>> ApplicationController
=> ApplicationController
>> reload!
=> [User, ApplicationController, MailNotifier]
>> ApplicationController
NameError: uninitialized constant ApplicationController
ord/virtual_enumerations.rb:63:in `const_missing'
/active_support/dependencies.rb:131:in `const_missing'
        from (irb):3

Does someone have any ideas? Thank you.
This topic is locked and can not be replied to.