From: Michael Guterl Date: 2007-11-10T23:03:49+09:00 Subject: Re: yaml error. dunno why ------=_Part_40984_33529551.1194703430378 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Nov 10, 2007 8:55 AM, Junkone wrote: > i have a simple yml file and am trying to parse it. > > development: > TWSDirectory: E:\Jts\dlqkjifys\ > Second: E:\Jts\test\ > > i get a error that i am not able to comprehend. pl help > irb(main):020:0> conf = YAML::load(File.open(RailsDirectory+ 'config/ > constants.y > ml')) > 'rgumentError: syntax error on line 5, col 12: ` Second: E:\Jts > \test\ > from e:/ruby/lib/ruby/1.8/yaml.rb:133:in `load' > from e:/ruby/lib/ruby/1.8/yaml.rb:133:in `load' > from (irb):20 > > > --- development: TWSDirectory: E:\Jts\dlqkjifys\ Second: E:\Jts\test\ I believe that --- is important, but I'm not sure. Try building your hash in irb and YAML.dump it. Michael Guterl ------=_Part_40984_33529551.1194703430378--