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
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
···
On Nov 10, 2007 8:55 AM, Junkone <junkone1@gmail.com> wrote:
---
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.
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 (irb):20
I suspect the backslashes need to be escaped:
h = YAML.load(<<END)
development:
TWSDirectory: E:\\Jts\\dlqkjifys\\
Second: E:\\Jts\\test\\
END
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