Forum: Ruby on Rails After 1.2 upgrade - a copy of X has been removed from the mo

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.
247c65e8004649339e492b72dbf4ee31?d=identicon&s=25 David L Bean (Guest)
on 2007-06-20 03:37
(Received via mailing list)

I've been diligently looking for a complete answer to the following
question, but I haven't seen any real resolution to it.  Anyone have
any new news?

Problem:  After associating an authentication method of the
Application controller with before_filter throughout the application,
I will occasionally get this error:

A copy of ApplicationController has been removed from the module tree
but is still active!

This did not happen prior to my upgrade to 1.2.

The workaround I'm using is to force Rails not to dynamically load/
unload the app's controllers, i.e. in environment.rb:

  ## chasing update to 1.2 error...
  config.load_once_paths += %W{ #{RAILS_ROOT}/app/controllers }

That keeps the error at bay, but I have to restart the server anytime
I make a change during development, which is a royal pain in the
patootie and something that negates one of the best characteristics of

Thanks for any help,

- David
This topic is locked and can not be replied to.