Rails 3.0.X + Ruby 1.9.Xで couldn't parse YAML at line XX column XX (Psych::SyntaxError)

Rails 3.0.X + Ruby 1.8.7では動いていたのだけど、Rails 3.0.X + Ruby 1.9.Xにしたら突然YAMLでエラーを吐くようになった。

% rails server  
trunk/config/application.rb:15: warning: variable $KCODE is no longer effective; ignored
=> Booting WEBrick
=> Rails 3.1.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/local/rvm/rubies/ruby-1.9.3-head/lib/ruby/1.9.1/psych.rb:154:in `parse': (trunk/config/locales/en.yml): couldn't parse YAML at line 15 column 14 (Psych::SyntaxError)
〜以下略〜

Happy Coding:YAML parsing errors in Rails 3.0.x application (couldn’t parse YAML)によれば、config/boot.rbに以下の二行を加えればよいらしい。

require 'rubygems'
require 'yaml' # この行を追加
YAML::ENGINE.yamler= 'syck' # この行を追加

ちゃんと動くようになった。