Displaying 1 result from an estimated 1 matches for "connecttopsqldb".
2006 Jan 11
0
Connection problem with a generic-runtime-built ActiveRecord::Base
...:Base.
I write some code, it seems to work. However, I can''t
disconnect my connection via "remove_connection" of a
postgresql database that I connected with
"establish_connection"
This is the generic class I wrote:
class GenActRec < ActiveRecord::Base
def self.connectToPSQLDB( hostName, portNum, dbName,
user, pwd )
ActiveRecord::Base.establish_connection(:adapter
=> "postgresql", :host => hostName,
:port => portNum,
:database => dbName,
:username => user,
:password => pwd)...