DreamHost Web Hosting
Discussion Forum


Forums
   >> General Troubleshooting
*Threaded Mode

Subject Rails App - Database Problem  
Posted byLeebert (DH New User )
Posted on09/11/05 04:24 PM



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 method `symbolize_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?





Jump to