Fix "couldn't parse YAML" error after upgrading Bundler

Updated . Posted . Visible to the public.

If you just upgraded to Bundler 10.0.10 you might get the following error when bringing up Rails:

/usr/lib/ruby/1.9.1/psych.rb:148:in `parse': couldn't parse YAML at line 17 column 14 (Psych::SyntaxError)

This is caused by Rails localization files (en.yml, de.yml, etc.) using symbols for various translation strings, and Bundler 10.0.10 defaults to a new YAML engine Show archive.org snapshot which cannot handle symbols.

You can switch back to the old YAML engine by putting these lines at the top of your config/boot.rb:

require 'yaml'
YAML::ENGINE.yamler= 'syck'
Henning Koch
Last edit
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2011-03-25 20:58)