Frederick Cheung wrote:
I bet if you switched to production mode it would work. What I think
is happening is:
- request calls Tracker.go
- Rails unloads loaded classes (since we're in dev mode)
- You threads continue to run trying to use classes that rails has
unloaded. Chaos ensues.
Bingo! Putting my application in production mode allowed me to make
continual requests. It, however, doesn't solve the problem though.
I've got a module (AccessControl) in RAILS_ROOT/lib that extends my
controllers (which inherit from ResourceController) and adds
functionality to AuthenticatedSystem. In development mode, this works
fine via requests through the browser. However, once I try to consume
the resources with ActiveResource, the first request succeeds and the
next request fails with the following error:
ArgumentError (A copy of AccessControl has been removed from the module
tree but is still active!):
I can't figure out why this would work via the browser but not through
ActiveResource. The only thing that's different, if I understand it
correctly, are the headers:
Why would that make a difference? Not only that, the error is
originating in the class it says it can't find. Does anyone understand
why this might be the case?