I can’t seem to connect to a remote database. Here is what I’ve tried.
the database,username,password, and host have been changed to protect
the innocent.
Here is the error
/usr/lib/ruby/1.8/yaml.rb:133:in load': syntax error on line 11, col 2: password: password’ (ArgumentError)
I’ve checked to make sure that the username,password,database, and host
are correct. Can anyone help?
First, check the leading space isn’t a tab (caught me out more than
once…), then check there aren’t any yaml-special characters in the
username or the password… Can’t think of any other likely issues
without more info.
Thank you! I use a tab stop of 2 to seperate the values from the keys
and that broke the yaml. Is that norman? Can you never use tabs in
yaml?
Never. Check YAML Ain't Markup Language
Any decent text editor should give you the option to convert tabs to
spaces. Use it! Tab characters are interpreted differently than
spaces, so
it will cause Rails to barf on your YAML if you include tabs.
-Will
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.