Rails App - Database Problem


#1

I’m trying to generate scaffolding for one of my models but I keep receiving an error. Here are the details:

Command:
ruby script/generate scaffold Person Admin

Error:
/usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:80:in

establish_connection': undefined methodsymbolize_keys’ for

-2:Fixnum (NoMethodError)

from ./script/…/config/environment.rb:59

from script/generate:2:in `require’

from script/generate:2

Environment.rb is setup for production:
RAILS_ENV = ENV[‘RAILS_ENV’] || ‘production’
(I’m assuming the webserver is set up for production by default as stated in the wiki.)

Database.yml has connection information for production also with correct db name and host name.

Any ideas?