Displaying 1 result from an estimated 1 matches for "pacspatient".
2009 Aug 28
0
Error connecting to Sybase (odd)
...t => “myhost”,
:myport => myport,
:username => “read_only”,
:password => “read_only”)
In Rails, I have this in my database.yml:
pacs:
adapter: sybase
database: mydb
username: read_only
password: read_only
host: myhost
port: myport
And then I have the following model:
class PacsPatient < ActiveRecord::Base
establish_connection "pacs"
set_table_name "patient"
set_primary_key "pat_ckey"
end
So, when I go to the console and try to do something like..
>> PacsPatient.find 1
#<Class:0x481a610>: connect failed
from c:/ruby/l...