From: Roger Pack Date: 2008-09-03T21:14:39+09:00 Subject: Re: dtabase access with Ruby > And for the sample program one require "dbi" and other require "odbc" > I tried both these but getting no file to load? So my doubt is if these > are the two methods for accessing database from Ruby how could I access > database without anyof these two in Rails ?Is rails strategy differnet? > I did not understand That is why asking Could you please explain with a > simple code fragment to how a simple ruby program can be connected to > the database I am using postgres And another doubt is if I install dbi > will there any conflict with existing rails functionality? > > Thanks in advance > Sijo shouldn't be a conflict I know you can find some postgres rails examples [google "postgres rails"] however I did't see any easy links out there to how to just use the postgres gem by itself [no rails]. Cheers. -=R -- Posted via http://www.ruby-forum.com/.