Hello,
Below is the message explaining where I stand..
Then you can answer either on the rails list, personally or to the ruby list:
http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/73205c23336a89d2/4b547ab8e66a94b7#4b547ab8e66a94b7
I apologize if this is some kind of cross-posting, but I figured out
that maybe I''d have more success posting this question to the rails
list than on the ruby one.
Thanx for any help!
Greetings.
--
Newsgroups: comp.lang.ruby
From: sjall...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org - Find messages by this
author
Subject: Re: database.yaml config for DB2 (and other DBMSs..)
Ok, I''ve found and tried the following:
development:
adapter: db2
database: test_development
host: my_hostname
username: my_usrname
password: my_pwd
Then, "RUBY SCRIPT/GENERATE MODEL TABLE_NAME"
where TABLE_NAME is a db2 object in my *CURLIB
But the result is:
C:\TEST>ruby script/generate model STSPAP
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.1/lib/active_record/connection_
adapters/abstract/connection_specification.rb:58:in
`establish_connection'': data
base configuration specifies nonexistent db2 adapter
(ActiveRecord::AdapterNotFo
und)
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.1/lib/active_recor
d/connection_adapters/abstract/connection_specification.rb:50:in
`establish_conn
ection''
..etc etc...
So, thanx for any hint about the adapter (isnt'' it included with
Rails??), and about how to "choose" which table I want to generate a
model for, according to the specific architecture of AS/400 systems
(library/file and then member).
Greetings.