Hello people…
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
in
source form.
Then he lists this site:
http://ruby.scripting.ca/postgres/
Then he says,
There is a pure-Ruby version of the Postgres adapter available. Download
postgres-pr from the Ruby-DBI page at
http://rubyforge.org/projects/ruby-dbi
So I understand all this and I’m happy.
But then I bumped into this page:
http://www.robbyonrails.com/articles/2006/05/29/install-ruby-rails-and-postgresql-on-osx
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…
rake db:migrate
It ran fine.
I should be happy but I’m not.
Actually I’m happy that I can now do development.
But…
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
environment?
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
my
Rails app
and PostgreSQL? Or, should I ignore it?
-Dan