Marko Anastasov wrote this on March 17, 2011

Psych syntax errors with Ruby 1.9 and Rails 3

We love using the latest versions of our tools but sometimes they’re giving us a hard time. If you’re using Bundler 1.0.10, Rails 3.0.x and Ruby 1.9.2, and you’re dealing with some YAML, eg through fixtures or seed data, you’re likely to encounter a Psych::SyntaxError with a stack trace that doesn’t help.

The first time, more than a month ago, we worked around it, but it hit us again yesterday and we found a solution on StackOverflow. The thing is that Bundler 1.0.10 loads Psych as a YAML engine which doesn’t work well with Rails, and for now, we should be using Syck instead.

comments powered by Disqus

About Marko Anastasov

Marko co-founded Rendered Text. He’s a programmer with a passion of creating something for other people, coupled with interests in how things work in the society and nature. He is having a great time working across many areas in the company, including product design, helping the engineering teams, empowering users and marketing. He likes to counterbalance it all with running, cycling or a day in the woods.

Suggested Reads

Inject is a fundamental building block

Inject is one of the fundamental, and most versatile constructs available in functional languages. It can be used to implement map, select, max, all? and a bunch of other iteration related methods. Unfortunately, many programmers are not aware of its awesome powers. This article is here to improve this fact.


Rendered Text is a software company. For questions regarding Semaphore, please visit Otherwise, feel free to get in touch any time by sending us an email.

Rendered Text
Svetozara Miletica 10
21000 Novi Sad