Forum: Ruby Does YAML::Syck::MergeKey have to_sym?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dean (Guest)
on 2006-12-26 08:51
(Received via mailing list)
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
This topic is locked and can not be replied to.