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
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> 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
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---