# ActiveACL and "already initialized constant OPTIONS"

**URL:** <https://www.ruby-forum.com/t/activeacl-and-already-initialized-constant-options/120592>\
**Category:** Rails\
**Created:** [November 18, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/activeacl-and-already-initialized-constant-options/120592 "2007-11-18T23:24:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![psamathos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/4491bb/32.png) [@psamathos](https://www.ruby-forum.com/u/psamathos)\
**Post date:** [November 18, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/activeacl-and-already-initialized-constant-options/120592/1 "2007-11-18T23:24:37Z")

</div>

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:in`gem\_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:in`require’  
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:in`require’  
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:in`require’  
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

---

<div class="post-metadata">

**Author:** ![psamathos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/4491bb/32.png) [@psamathos](https://www.ruby-forum.com/u/psamathos)\
**Post date:** [November 21, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/activeacl-and-already-initialized-constant-options/120592/2 "2007-11-21T19:06:59Z")

</div>

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-

---

<div class="post-metadata">

**Author:** ![psamathos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/4491bb/32.png) [@psamathos](https://www.ruby-forum.com/u/psamathos)\
**Post date:** [November 25, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/activeacl-and-already-initialized-constant-options/120592/3 "2007-11-25T20:57:24Z")

</div>

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 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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
