# Already initialized constant OPTIONS help please!

**URL:** <https://www.ruby-forum.com/t/already-initialized-constant-options-help-please/108653>\
**Category:** Ruby\
**Created:** [July 5, 2007, 6:10pm UTC](https://www.ruby-forum.com/t/already-initialized-constant-options-help-please/108653 "2007-07-05T18:10:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DMDMDM](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dfb087/32.png) [@DMDMDM](https://www.ruby-forum.com/u/DMDMDM)\
**Post date:** [July 5, 2007, 6:10pm UTC](https://www.ruby-forum.com/t/already-initialized-constant-options-help-please/108653/1 "2007-07-05T18:10:15Z")

</div>

=\> Booting WEBrick…  
c:/RUBY186-25/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:11:  
warning: already initialized constant OPTIONS  
=\> Booting WEBrick…  
c:/RUBY186-25/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:11:  
warning: already initialized constant OPTIONS  
c:/RUBY186-25/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:249:in  
`load_missing_constant': Expected ./script/../config/../vendor/plugins/acts_as_attachment/lib/technow eenie/acts_as_attachment.rb to define Technoweenie::ActsAsAttachment (LoadError) from c:/RUBY186-25/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencie s.rb:452:in`const\_missing’  
from  
./script/…/config/…/vendor/plugins/acts\_as\_attachment/init.rb:6:in  
`load_plugin' from c:/RUBY186-25/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:401:in`load\_plugin  
’  
from  
c:/RUBY186-25/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/core\_ext/ke  
rnel/reporting.rb:11:in `silence_warnings' from c:/RUBY186-25/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:401:in`load\_plugin  
’  
from  
c:/RUBY186-25/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:185:in  
`load_plugin s' from c:/RUBY186-25/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:185:in`each’  
from  
c:/RUBY186-25/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:185:in  
`load_plugin s' ... 15 levels... from c:/RUBY186-25/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 from c:/RUBY186-25/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in`gem\_original\_req  
uire’  
from  
c:/RUBY186-25/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:32:in  
`require’  
from script/server:3

Not real sure what to do about this error when trying to run webrick. I  
have uninstalled reinstalled ruby, updated gems, updated rails… all  
updates, installs went good yet this error still occurs.

---

<div class="post-metadata">

**Author:** ![DMDMDM](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dfb087/32.png) [@DMDMDM](https://www.ruby-forum.com/u/DMDMDM)\
**Post date:** [July 5, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/already-initialized-constant-options-help-please/108653/2 "2007-07-05T20:14:58Z")

</div>

On 7/5/07, DM [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> /lib/active\_support/dependencies.rb:249:in  
> ./script/…/config/…/vendor/plugins/acts\_as\_attachment/init.rb:6:in  
> c:/RUBY186-25/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:401:in  
> c:/RUBY186-25/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:185:in  
> c:/RUBY186-25/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:32:in
> 
> Already initialized constant OPTIONS is a red-herring, it’s a warning.  
> Your real problem is:  
> c:/RUBY186-25/lib/ruby/gems/1.8/gems/activesupport-1.4.2  
> /lib/active\_support/dependencies.rb:249:in  
> `  
> load\_missing\_constant’: Expected  
> ./script/…/config/…/vendor/plugins/acts\_as\_attachment/lib/technow  
> eenie/acts\_as\_attachment.rb to define Technoweenie::ActsAsAttachment  
> (LoadError)

I’m not sure exactly under what circumstances rails raises what  
exceptions,  
but the LoadError seems to indicate that the file acts\_as\_attachment.rb  
in  
the directory technoweenie is missing. Furthermore it seems to expect it  
to  
be in the plugins dir of your rails project  
(vendor/plugins/acts\_as\_attachment/lib/technoweenie/acts\_as\_attachment.rb).  
If that file is missing I think you’ve found your culprit.

---

<div class="post-metadata">

**Author:** ![DMDMDM](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dfb087/32.png) [@DMDMDM](https://www.ruby-forum.com/u/DMDMDM)\
**Post date:** [July 5, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/already-initialized-constant-options-help-please/108653/3 "2007-07-05T21:33:46Z")

</div>

> I’m not sure exactly under what circumstances rails raises what  
> exceptions,  
> but the LoadError seems to indicate that the file acts\_as\_attachment.rb  
> in  
> the directory technoweenie is missing. Furthermore it seems to expect it  
> to  
> be in the plugins dir of your rails project  
> (vendor/plugins/acts\_as\_attachment/lib/technoweenie/acts\_as\_attachment.rb).  
> If that file is missing I think you’ve found your culprit.

I really wish the problem was this easy. I do have that plugin and path  
in my rails application.

The strange thing I discovered this afternoon was if I was to remove the  
acts\_as\_attachment plugin from my rails app… then I will get the same  
error running ruby script/server pointing its finger at the next  
remaining plugin in my list acts\_as\_paranoid.

So, it would appear that whatever this problem is it has something to do  
with linking the way ruby finds my plugins… it is error’ing out on the  
first one it comes across.

---

<div class="post-metadata">

**Author:** ![DMDMDM](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dfb087/32.png) [@DMDMDM](https://www.ruby-forum.com/u/DMDMDM)\
**Post date:** [July 5, 2007, 11:39pm UTC](https://www.ruby-forum.com/t/already-initialized-constant-options-help-please/108653/4 "2007-07-05T23:39:31Z")

</div>

On 7/5/07, Dan M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> (vendor/plugins/acts\_as\_attachment/lib/technoweenie/acts\_as\_attachment.rb).  
> So, it would appear that whatever this problem is it has something to do  
> with linking the way ruby finds my plugins… it is error’ing out on the  
> first one it comes across.

I would suggest maybe taking this to the rails list. Looks like it is  
some  
sort of issue with how rails’s plugin loading works.

---

<div class="post-metadata">

**Author:** ![DMDMDM](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dfb087/32.png) [@DMDMDM](https://www.ruby-forum.com/u/DMDMDM)\
**Post date:** [July 6, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/already-initialized-constant-options-help-please/108653/5 "2007-07-06T23:11:42Z")

</div>

On Jul 5, 2007, at 4:38 PM, Logan C. wrote:

> > > to  
> > > The strange thing I discovered this afternoon was if I was to  
> > > first one it comes across.
> 
> I would suggest maybe taking this to the rails list. Looks like it  
> is some  
> sort of issue with how rails’s plugin loading works.
> 
> –  
> Unfortunately, you might want to find a different Rails forum/list  
> than the one set up as a google talk list. It’s not too responsive.
