On Sat, 13 Oct 2007 13:40:22 -0700, MrLipid wrote:
Loading development environment.
D:/INSTAN~1/ruby/lib/ruby/1.8/yaml.rb:133:in ‘load’:ArgumentError:
syntax error on line 18, col 2: ’ host: localhost’
What’s on the line before it? If that doesn’t help, post the whole
database.yml file (mask out any passwords of course).
Is the “password:” line really blank, or did you just remove the
password?
It looks like that’s actually the line that’s giving it trouble.
Make sure there are no tabs where there should be spaces, and that
there’s
no whitespace at the end of the line; I don’t know if either is supposed
to matter to YAML, but Ruby and tabs can do weird things on Windows.
Try switching the order of the password: and username: lines, and see if
the error now lists username instead of host. And (assuming the
passwords
are the same or really blank) try swapping two of the password: lines,
or
retyping the line from scratch. Look at the file in a hex editor and
see
if there’s anything weird with line endings (CRLF vs LF).
–
Jay L. |
Boston, MA | My character doesn’t like it when they
Faster: jay at jay dot fm | cry or shout or hit. http://www.jay.fm | - Kristoffer
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.