[Rails] postgresql connection error

Robby Russell robby at planetargon.com
Fri Mar 18 05:47:34 GMT 2005


On Thu, 2005-03-17 at 22:24 -0700, Ara.T.Howard wrote:
> On Thu, 17 Mar 2005, Jeremy Kemper wrote:
> 
> > mrpotatohead wrote:
> >> I know that ruby (ruby 1.8.2 (2004-11-03) [powerpc-darwin7.5.0]), rails
> >> (0.9.x), apache and postgresql is working standalone
> >> however Rails seems to throw this error:
> >>
> >> ++++++++++++++++++
> >> LoadError in  Todo#index
> >> No such file to load -- postgres
> >> ++++++++++++++++++
> >>
> >> When accessing: http://localhost/todo/
> >
> > It appears that the PostgreSQL bindings are not installed (despite your
> > mention.)  Try 'gem install postgres'.
> 
> or it is for one ruby - but not this one.  did you install postgresql for
> 1.6.8 perhaps?
> 
> -a

There is also:

postgres-pr (0.3.6) 
A pure Ruby interface to the PostgreSQL (>= 7.4) database

gem install postgres-pr

That's what we're using on our hosting boxes for our Rails customers.

-Robby

-- 
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON  | www.planetargon.com
* Portland, OR  | robby at planetargon.com
* 503.351.4730  | blog.planetargon.com
* PHP, Ruby, and PostgreSQL Development
* http://www.robbyonrails.com/
****************************************/



More information about the Rails mailing list