How can I connect with postgresql using rails?

Dear Friends,
I am a new of ruby on rails.
In my server mqsql is not installed,instead of mysql I am
having the postgresql.
How can I connect with postgresql using rails ?
Please anyone help me to study further details.

with deep regards,
S.Vellingiri

install gem driver to connect your db : sudo gem install ruby-
postgres.
and configure your database.yml :

development:
adapter: postgresql
database: your_development_db_name
username: your_user_name
password: your_password
host: host_name
encoding: unicode # to enable unicode encoding with PostGresql

(do it for test and production too)

that’s all!

On Nov 28, 10:34 am, Arul hari [email protected]