Mongrel Server error - newbie question

Dear All,

I am very new to RoR. I have got the following error after Chnaging
mysql database.yml and restart the Server.

rails employee

rails -d mysql employee

and insert Username & Password in the database.yml

and I restart the server.

=> Booting Mongrel
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
/usr/local/lib/ruby/1.8/yaml.rb:133:in load': syntax error on line 24, col 2: 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-2.3.2/lib/initializer.rb: 880:indatabase_configuration’
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:
416:in initialize_database' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb: 141:inprocess’
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:
113:in send' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb: 113:inrun’
from /Users/khaipi/Documents/rails/employee/config/environment.rb:9
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:inrequire’
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:521:innew_constants_in’
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in require' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/ server.rb:84 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:ingem_original_require’
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require’
from script/server:3


What did I do wrong here?

Many thanks in advance,

nuam.

I was able able solve the problem …

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs