# Rails + postgresql

**URL:** <https://www.ruby-forum.com/t/rails-postgresql/51058>\
**Category:** Rails\
**Created:** [December 25, 2005, 1:24am UTC](https://www.ruby-forum.com/t/rails-postgresql/51058 "2005-12-25T01:24:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [December 25, 2005, 1:24am UTC](https://www.ruby-forum.com/t/rails-postgresql/51058/1 "2005-12-25T01:24:33Z")

</div>

Are there any code examples of using rails and postgresql - I cannot  
seem to get a simple example working (it could be a connect problem or  
an active record problem - error msg just says error. thks.

---

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [December 25, 2005, 1:30am UTC](https://www.ruby-forum.com/t/rails-postgresql/51058/2 "2005-12-25T01:30:58Z")

</div>

john wrote:

> Are there any code examples of using rails and postgresql - I cannot  
> seem to get a simple example working (it could be a connect problem or  
> an active record problem - error msg just says error. thks.

Maybe you should take a look at [http://robbyonrails.com/](http://robbyonrails.com/). He’s Rails +  
Postgresql evangelist extraordinare.

---

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [December 25, 2005, 5:40am UTC](https://www.ruby-forum.com/t/rails-postgresql/51058/3 "2005-12-25T05:40:54Z")

</div>

john wrote:

> Are there any code examples of using rails and postgresql - I cannot  
> seem to get a simple example working (it could be a connect problem or  
> an active record problem - error msg just says error. thks.

John,

Make sure you rails application is pointing to the correct database i.e  
production or development.

Tracy

---

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [December 25, 2005, 6:36pm UTC](https://www.ruby-forum.com/t/rails-postgresql/51058/4 "2005-12-25T18:36:48Z")

</div>

Tracy Phillips wrote:

> john wrote:
> 
> > Are there any code examples of using rails and postgresql - I cannot  
> > seem to get a simple example working (it could be a connect problem or  
> > an active record problem - error msg just says error. thks.
> 
> John,
> 
> Make sure you rails application is pointing to the correct database i.e  
> production or development.
> 
> Tracy

thks, a combination of updating gems and adding a new password (I think  
this was the real solution) to the db solved the problem - rails is  
working fine now with postgresql.
