# Does YAML::Syck::MergeKey have to\_sym?

**URL:** <https://www.ruby-forum.com/t/does-yaml-mergekey-have-to-sym/80408>\
**Category:** Ruby\
**Created:** [December 26, 2006, 7:51am UTC](https://www.ruby-forum.com/t/does-yaml-mergekey-have-to-sym/80408 "2006-12-26T07:51:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3be4f8/32.png) [@dean](https://www.ruby-forum.com/u/dean)\
**Post date:** [December 26, 2006, 7:51am UTC](https://www.ruby-forum.com/t/does-yaml-mergekey-have-to-sym/80408/1 "2006-12-26T07:51:08Z")

</div>

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
