Script/generate model Cookbook yields: `const_missing': uninitialized constant

This only appears to have started in the past day or so. I initially
noticed a problem yesterday after a gem update(--system, I think)
started giving me errors when I'd attempt to "rake migrate" and then
updated today in hopes it'd fix it and now it's even worse.

Here's the error:

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:477:in
`const_missing': uninitialized constant XSD::NS::KNOWN_TAG (NameError)

I'm assuming there's not much I can do about it right now but just
making sure I'm not doing something wrong...

Seems this was caused by soap4r-1.5.8, removing it and using only 1.5.7
fixed the problem. I happened to do a search and found that someone was
having problems starting Mongrel if they had 1.5.8 installed so I tried
it and viola! it worked.

Hi,

Eric H. wrote:

Seems this was caused by soap4r-1.5.8, removing it and using only 1.5.7
fixed the problem. I happened to do a search and found that someone was
having problems starting Mongrel if they had 1.5.8 installed so I tried
it and viola! it worked.

soap4r-1.5.6, soap4r-1.5.7 did not work as expected, too.

The problem is caused by;

* Ruby's feature loading system (Kernel#require), plus
* RubyGems' hacking to control the feature loading scheme, plus
* Rails' hacking to improve performance of the feature loading

It's caused by ActiveSupport + RubyGems, and soap4r just hits the
problem. For now soap4r is the only module that is bundled with Ruby
and released as a gem. When another module such as REXML, yaml and so
on will try to create a gem, same kind of problem must be exposed.

Workaround of this ActiveSupport + RubyGems problem;

1. declaring soap4r gem ('gem "soap4r"') before Rails tries to load any
    features, or
2. sudo rm -rf /usr/local/lib/ruby/1.8/{soap,wsdl,xsd}

Regards,
// NaHi

NAKAMURA, Hiroshi wrote:

soap4r-1.5.6, soap4r-1.5.7 did not work as expected, too.

The problem is caused by;

* Ruby's feature loading system (Kernel#require), plus
* RubyGems' hacking to control the feature loading scheme, plus
* Rails' hacking to improve performance of the feature loading

It's caused by ActiveSupport + RubyGems, and soap4r just hits the
problem. For now soap4r is the only module that is bundled with Ruby
and released as a gem. When another module such as REXML, yaml and so
on will try to create a gem, same kind of problem must be exposed.

Workaround of this ActiveSupport + RubyGems problem;

1. declaring soap4r gem ('gem "soap4r"') before Rails tries to load any
    features, or
2. sudo rm -rf /usr/local/lib/ruby/1.8/{soap,wsdl,xsd}

The second option seems to work for me and I'll simply leave it that way
until they come up with something better.

I suspected it had something to do with either ActiveSupport or
ActiveRecord(both kept appearing in errors after I'd execute 'rake
db:migrate')

Hope this is fixed soon as I'm too new to Ruby to diagnose this type of
incompatibility.