RoR DB Connection Troubles
Posted by: Leebert
Posted on: 2005-09-12 23:13:00
I can access the public page of my rails app. But if I try to generate scaffolding (ruby script/generate scaffold Person Admin) I get:
/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
If I run public/dispatch.fcgi I get a similar 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 -1:Fixnum (NoMethodError)
from ./public/../config/environment.rb:59
from public/dispatch.fcgi:21:in `require'
from public/dispatch.fcgi:21
Any assitance would be GREATLY appreciated!
Edited by Leebert on 09/12/05 11:18 PM (server time).