Forum: Ruby on Rails Troubleshooting "undefined class/module"

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.
7a7777470c11f6c746e3236a1b3aa4db?d=identicon&s=25 steve.enzer (Guest)
on 2005-12-02 00:24
(Received via mailing list)
I'm having a bit of a headbanger here... maybe someone can help.

A class in a fairly complicated existing Rails app that I'm working on
seems intermittently not to load.
The error is basically the following:

undefined class/module InnerPackage

c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0
/lib/action_controller/session/active_record_store.rb:75:in
`load'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0
/lib/action_controller/session/active_record_store.rb:75:in
`unmarshal'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0
/lib/action_controller/session/active_record_store.rb:116:in
`data'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0
/lib/action_controller/session/active_record_store.rb:126:in
`marshal_data!'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0
/lib/active_record/callbacks.rb:333:in
`send'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0
/lib/active_record/callbacks.rb:333:in
`callback'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0
/lib/active_record/callbacks.rb:330:in
`each'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0
/lib/active_record/callbacks.rb:330:in
`callback'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0
/lib/active_record/callbacks.rb:248:in
`create_or_update'
<snip>

I've seen this happen if the controller file has a syntax error, but
that's not it.  I'm interested mostly hearing a debugging approach that
I haven't tried, or if you've banged your head on this one before, what
you learned in doing so.

The model file is in app_root/app/models
The problem is intermittent, and goes away for a while if I restart
WEBrick
This topic is locked and can not be replied to.