How to identify YML parse error

I'm getting the following error when I boot my rails 3.1.3 application:

psych.rb:148:in `parse': couldn't parse YAML at line 28 column 9 (Psych::SyntaxError)

I'm guessing it is related to YML file syntax.

The problem appears when I try running:

YAML.load_file "..."

From another rails 3.1.3 application and YMLs are loaded just fine.

Answers


The syntax is covered here: http://en.wikipedia.org/wiki/YAML#Syntax

An online parser, which may help you troubleshoot, is here: http://yaml-online-parser.appspot.com/


Need Your Help

How to update datasource of datagridview from another thread in c#

c# data-binding datagridview backgroundworker

I have a backgrounder thread running along with a ui thread. Now in the backgrounder_doWork method, i have a datatable that i am adding info to from a database. I want it to bind to a datagridview ...

Load UIView from nib file?

iphone ios xcode ipad interface-builder

I have one large view with a toolbar that allows a user to select how they want data displayed. When they select what data they want displayed, a smaller UIView (contained within the original one) ...