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:inload’
from e:/ruby/lib/ruby/1.8/yaml.rb:133:in `load’
from (irb):20
‘rgumentError: syntax error on line 5, col 12: Second: E:\Jts \test\ from e:/ruby/lib/ruby/1.8/yaml.rb:133:inload’
from e:/ruby/lib/ruby/1.8/yaml.rb:133:in `load’
from (irb):20
‘rgumentError: syntax error on line 5, col 12: Second: E:\Jts \test\ from e:/ruby/lib/ruby/1.8/yaml.rb:133:inload’
from e:/ruby/lib/ruby/1.8/yaml.rb:133:in `load’
from (irb):20
I suspect the backslashes need to be escaped:
h = YAML.load(<<END)
development:
TWSDirectory: E:\Jts\dlqkjifys\
Second: E:\Jts\test\
END