创建control的错误,急需解决!

创建control的错误,急需解决!

以下是错误的内容:

D:/ruby/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 21, col 2: ` username: sa' (ArgumentError)
    from D:/ruby/lib/ruby/1.8/yaml.rb:133:in `load'
    from D:/ruby/lib/ruby/gems/1.8/gems/php?name=rails" onclick="tagshow(event)" class="t_tag">rails-2.0.2/lib/initializer.rb:506:in `database_configuration'
    from D:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:233:in `initialize_database'
    from D:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:94:in `process'
    from D:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in `send'
    from D:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in `run'
    from D:/rubywork/trade/config/environment.rb:15
    from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    from D:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/generate.rb:1
    from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    from ./script/generate:3
    from -e:3:in `load'
    from -e:3

我用的是rails2.0.2,数据库是sqlserver.
第一次创建是好的,数据也调用出来了!
问题一、期间有数据库中文数据一直显示乱码,没找到原因!也修改了字体类型utf-8,还是不行。望赐教!
问题二、第二次创建control时就报上面的错误,不知什么原因,望赐教!

怎么没人在呀?
查你的database.yml
主意每一条项和值之间一定要有一个空格

正确

[Copy to clipboard] [ - ]
谢谢,乱弄了一通问题解决了,好像是这方面的问题!