In the rails2.pdf Dave T says:
Rails works with the DB2, MySQL, Oracle, Postgres,…
The database drivers are all written in C and are primarily distributed
Then he lists this site:
Then he says,
There is a pure-Ruby version of the Postgres adapter available. Download
postgres-pr from the Ruby-DBI page at
So I understand all this and I’m happy.
But then I bumped into this page:
It suggests that I install a gem using a command line like this:
gem install postgres
So, I tried it and it installed okay.
I then rails a tmp_app and edited my database.yml
I tested with…
It ran fine.
I should be happy but I’m not.
Actually I’m happy that I can now do development.
I’m not sure how rails is connected to my PostgreSQL database.
Q1: What is the best way to connect Rails to PostgreSQL in a Production
Q2: For Production, should I use the postgres gem?
Q3: The software here: http://ruby.scripting.ca/postgres/ …
Should I try to figure out how to make it serve as a layer between
and PostgreSQL? Or, should I ignore it?