[xxxxx@fedora test]$ script/generate model contact /usr/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 17, col 2: ` host: localhost'' (ArgumentError) from /usr/lib/ruby/1.8/yaml.rb:133:in `load'' from /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:459:in `database_configuration'' from /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:181:in `initialize_database'' from /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:84:in `process'' from /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:42:in `run'' from ./script/../config/../config/environment.rb:13 from /usr/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'' from /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/generate.rb:1 from /usr/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'' from script/generate:3 -- Posted via http://www.ruby-forum.com/.
just a typo in your database.yml d. Adam wrote:> [xxxxx@fedora test]$ script/generate model contact > /usr/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 17, col 2: > ` host: localhost'' (ArgumentError) > from /usr/lib/ruby/1.8/yaml.rb:133:in `load'' > from > /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:459:in > `database_configuration'' > from > /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:181:in > `initialize_database'' > from > /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:84:in > `process'' > from > /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:42:in `run'' > from ./script/../config/../config/environment.rb:13 > from /usr/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require'' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in > `require'' > from > /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/generate.rb:1 > from /usr/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require'' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in > `require'' > from script/generate:3 > >