[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Does YAML::Syck::MergeKey have to_sym?

Dean

12/26/2006 6:47:00 AM

Hi,

I have a stock gentoo ruby/rails installation and am running into an
error with YAML::Syck::MergeKey.

0 wicked www/ror % ruby --version
ruby 1.8.5 (2006-12-04 patchlevel 2) [i686-linux]

(gentoo ebuild 1.8.5_p2)

0 wicked www/ror % rails --version
Rails 1.1.6

Some bits of rails are trying to call to_sym on a YAML::Sycn::MergeKey
object:

0 wicked www/ror % ./script/console
Loading development environment.
../script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/hash/keys.rb:27:in
`symbolize_keys':NoMethodError: undefined method `to_sym' for
#<YAML::Syck::MergeKey:0xb7348318>

Is this object supposed to have a to_sym? Looks like it might be
happening when script/console tries to read my config/database.yml.

Regards,
--Dean