already initialized constant OPTIONS help please!

D

DM

=> 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.
 
D

Dan Morton

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.
 
J

John Joyce

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,836
Messages
2,569,748
Members
45,545
Latest member
rapter____0

Latest Threads

Top