Forum: Ruby on Rails error with database.yml when running rails generate script

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Uung H.R Bhuwono (Guest)
on 2006-04-28 13:37
(Received via mailing list)
Hi All,

I'm learn about ruby and rails in the same time.
I got error when running rails generate script when trying to create
application with db
When I execute "ruby script/generate scaffold Product Admin"
It give me error like this
"/usr/local/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line
33, col 8: `  #host: localhost' (ArgumentError)
        from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
        from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:424:in
`database_configuration'
        from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:168:in
`initialize_database'
        from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:83:in
`process'
        from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:42:in
`run'
        from ./script/../config/../config/environment.rb:10
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
`require'
        from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/generate.rb:1
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
`require'
        from script/generate:3"

How can I fix this,
Thanks before

--
____________________________________________________

Uung H.R Bhuwono

+++++++++++++++++++++++++++++++++++++++++++++
Personal Blog
http://g33kgnu3r.blogspot.com/
This topic is locked and can not be replied to.