Brian Candler
3/26/2007 7:05:00 PM
On Tue, Mar 27, 2007 at 03:50:10AM +0900, Starke wrote:
> On Mar 26, 1:14 pm, Brian Candler <B.Cand...@pobox.com> wrote:
> > On Mon, Mar 26, 2007 at 11:30:05PM +0900, Starke wrote:
> > > I am trying to create a reporting system via rails and iSeries DB2. I
> > > have ruby retrieve records with Ruby DBI. Is there a way to get this
> > > working inside rails?
> >
> > Yes.
>
> I thought so to, but I guess Im not setting up rails correctly to use
> DBI... im just guessing but I tried to setup my database.yml file as
>
> development:
> adapter: DBI
> dsn: a2401p6
> username: STARTCA
> password: STARTCA
>
> But it bombs. I really cant find any documenation on using DBI within
> rails...
Ah, I see what you mean. database.yml is for ActiveRecord. Those values are
passed to ActiveRecord::Base.establish_connection or whatever.
If you want to use DBI, I think you'll have to open the DBI connection
yourself.
Regards,
Brian.