I was able able solve the problem ...

On Fri, Jul 17, 2009 at 5:38 PM, nuam<[email protected]> wrote:
>
> 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:in `database_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:in `process'
>        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:in `run'
>        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:in `require'
>        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:in `new_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:in `gem_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.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to