WEIRD with extension! ArgumentError (A copy of ApplicationController has been removed from the module tree but is still active!):

75 views
Skip to first unread message

yortz

unread,
Nov 20, 2009, 12:24:15 PM11/20/09
to Spree
Hi guys, trying to work with an extension, don't understand why
(actually this is the first time I have seen such an error), anyway on
my log i get a:

ArgumentError (A copy of ApplicationController has been removed from
the module tree but is still active!):
vendor/extensions/site/app/controllers/application.rb:97:in
`instantiate_controller_and_action_names'
/usr/local/lib/ruby/gems/1.8/gems/haml-edge-2.1.3/lib/sass/plugin/
rails.rb:19:in `process'

kinda lost on this, anyone has evered experienced such a thing with
spree or know how to debug it?

Thanks in advance!

Eliot Sykes

unread,
Nov 20, 2009, 4:20:37 PM11/20/09
to Spree
I ran into something similar with Rails 2.1 a few weeks ago, try
searching using the error message if this doesn't help:

http://blog.eliotsykes.com/2009/10/29/fixing-a-copy-of-applicationhelper-has-been-removed-from-the-module-tree-but-is-still-active/

Regards,
Eliot

yortz

unread,
Nov 22, 2009, 12:34:23 PM11/22/09
to Spree
Yeah, tried that and several other stuff by reading on different blog
posts and searching on google. Nothing seems to help.
Actually it complains about application.rb
(instantiate_controller_and_action_names) that gets loaded in my site
extension.
I've commented out

# Uncomment this if you reference any of your controllers in activate
require_dependency 'application'

in my site_extension.rb since I am referencing and overriding a bunch
of stuff from my controllers.

I've actually gave up on this. Now I got 2 different rails apps
fetching from the same database. Tried to include the second one via
rails engines (as a plugin), no matter what, that bloody
application.rb is just giving me the shingles so I think I'll just
keep the things this way. Guess that this is not afflicting anyone
else but me (actually I've heavily modified spree in its core and in
some extensions).

On Nov 20, 10:20 pm, Eliot Sykes <eliotsy...@gmail.com> wrote:
> I ran into something similar with Rails 2.1 a few weeks ago, try
> searching using the error message if this doesn't help:
>
> http://blog.eliotsykes.com/2009/10/29/fixing-a-copy-of-applicationhel...
Reply all
Reply to author
Forward
0 new messages