From: "Dmitry V. Sabanin" Date: 2004-11-12T13:38:13+09:00 Subject: Re: trouble with rails :./script/new_controller error On Friday 12 November 2004 10:40, bin liu wrote: > Hi all : > > I installed rails success ,and have seen the "Congratulations, you're on > Rails!" page . but when i execute new_controller followed > "http://www.rubyonrails.org/show/TutorialStepThree" ,some error occurs,it > seems that somthing wrong with > "YAML::load(File.open(File.dirname(__FILE__) + > "/../../config/database.yml")) " .bellow is debug message: .... > Exception ArgumentError' at /usr/local/lib/ruby/1.8/yaml.rb:119 - parse error on > line 14, col -1: `' /usr/local/lib/ruby/1.8/yaml.rb:119:in `load': parse > error on line 14, col -1: `' (ArgumentError) from I saw that error just before yesterday. For me problem was in database.yml file, there were bad chars inside it, I couldn't find what exactly though. My problem appeared when I moved my Rails app developed on windows to a Linux server. After rewriting the hole database.yml from scratch on nix everything worked. Try that. P.S. Btw, that wasn't LF/CRLF issue, afaik, because dos2unix(which I tried first) didn't fix it -- sdmitry -=- Dmitry V. Sabanin MuraveyLabs. Spam Here -> postmaster@sco.com