From: Logan Capaldo Date: 2007-07-06T03:13:25+09:00 Subject: Re: already initialized constant OPTIONS help please! ------=_Part_81054_21646106.1183659207529 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 7/5/07, DM wrote: > > => 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. > > -- > Posted via http://www.ruby-forum.com/. > > 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. ------=_Part_81054_21646106.1183659207529--