smerf
smerf copied to clipboard
A copy of ApplicationController has been removed from the module tree but is still active!
Got the error as title.
It seems the only fix from Google is to change:
config.cache_classes = false
to:
config.cache_classes = true
in config/environments/development.rb
the "unloadable" fix suggested by others does not work for me.
the error is hit at line 11 of the following code:
10:
it seems that there is something wrong with the current_user method (defined application_controller.rb as suggested by Ryan's Railscasts ( http://asciicasts.com/episodes/160-authlogic )
thanks
the detail error: http://pastie.org/855261
hi,
I'm not sure if this is a smerf problem, it sounds like you have issues with authlogic. SMERF only requires you to set the ID of your user's record for example self.smerf_user_id = current_user.id how you do that is up to your application.
To fix this, add 'unloadable' to all the Smerf models and controllers. See http://strd6.com/2009/04/cant-dup-nilclass-maybe-try-unloadable/