title: rails 3.2.2 (or 3.2.1) + Postgresql 9.1.3 + Ubuntu 11.10 Connection error
body: <p>I am using PostgreSQL 9.1.3 (PostgreSQL 9.1.3 on x86_64-pc-linux-gnu, compiled by gcc-4.6.real (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1, 64-bit) and rails either 3.2.2 or 3.2.1 on ubuntu 11.10.</p>
  
  <p>Now, I can connect with below command with PostgreSQL</p>
  
  <ol>
  <li><p>su postgres</p>
  
  <p>enter password and I can see postgres=#</p></li>
  <li><p>I am placing below details in my config/database.yml and executing "<b>rails db</b>" it is <b>working fine.</b></p>
  
  <p><code>development:</code></p>
  
  <pre><code>adapter: postgresql
  encoding: utf8
  reconnect: false
  database: sample_app_db
  pool: 5
  username: postgres
  password: passwordhere
  host: localhost
  </code></pre></li>
  </ol>
  
  <p>I am using rvm to access my rails environment. but when I start server using "rails s" command and hit url with "http://localhost:3000", say - connection not establish.</p>