ActiveACL and "already initialized constant OPTIONS"

Hi,

I’ve been trying to get ActiveACL to work with my new project, and as
the title suggest I’m stuck. I get the following error:

/var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/servers/mongrel.rb:15:
warning: already initialized constant OPTIONS
/var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/servers/mongrel.rb:18:
undefined method options' for []:Array (NoMethodError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:33:ingem_original_require’
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:33:in
require' from /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:inrequire’
from
/var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in
new_constants_in' from /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:inrequire’
from
/var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/server.rb:39
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from script/server:3

I’ve googled and it seems like it’s caused by a missing gem, but I can’t
for the life of me find which one it would be. I’ve already installed
all the dependencies listed on ActiveACL’s project page.

Anyone with some ideas? Or should I just roll my own, since I need
object-level permissions and ActiveACL is the only plugin I found which
handles that.

thanks
/Magnus

I am having this exact same problem after installing SOAP4R, and
cannot for the life of me figure out what the issue is. I got it
working fine another box (OS X), but on my Linux box I continue to get
this error.

On Nov 18, 2:24 pm, Magnus Sjöstrand <rails-mailing-l…@andreas-

Check your gems. I have seen errors like this when a gem is included in
my
plugins and hasn’t been installed on the machine.

do a grep for require…

grep -rni ‘require’ rails_project/*

And make sure that all the libs it references are indeed on your
machine.

Another place to look is in the init.rb file. Or within the lib folder
of
the new plugin.

On 11/21/07, Ron F [email protected] wrote:

On Nov 18, 2:24 pm, Magnus Sjöstrand <rails-mailing-l…@andreas-

    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:33:in

`new_constants_in’
from script/server:3
/Magnus

Posted viahttp://www.ruby-forum.com/.


Nathaniel Steven Henry Brown
604-724-6624