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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
25ed994f606a81feaa047164d4eb994a?d=identicon&s=25 Vlad Rafeev (genie)
on 2007-01-23 20:38
(Received via mailing list)
Hello!

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!
Reloading...
=> [User, ApplicationController, MailNotifier]
>> ApplicationController
NameError: uninitialized constant ApplicationController
        from
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib
/active_support/dependencies.rb:123:in
`enumerations_original_const_missing'
        from
./script/../config/../config/../vendor/plugins/trunk/lib/active_rec
ord/virtual_enumerations.rb:63:in `const_missing'
        from
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib
/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.