title: Ruby on Rails postgres adapter error when trying to run the server
body: <p>I have installed all the gems that I saw listed in <a href="https://stackoverflow.com/questions/1664364/how-to-handle-ruby-on-rails-error-please-install-the-postgresql-adapter-gem">How to handle Ruby on Rails error: &quot;Please install the postgresql adapter: `gem install activerecord-postgresql-adapter&#39;&quot;</a> - none of them work. It doesn't matter if I have postgres or postgresql in my databases.yml file. </p>
  
  <p>I have no clue what I am doing wrong (I also installed the driver mentioned in the error as well. I keep getting that error.</p>
  
  <pre><code>/var/lib/gems/1.8/gems/bundler-1.1.5/lib/bundler/rubygems_integration.rb:147:in `gem': Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (pg is not part of the bundle. Add it to Gemfile.) 
  </code></pre>
  
  <p>I am trying to run "rails server webrick -p 80 -e production"</p>
  
  <pre><code>production:
    adapter: postgresql
    encoding: unicode
    database: imentor
    pool: 5
    username: postgres
    password: 
    host: localhost
    port: 5432
  </code></pre>
  
  <hr>
  
  <p>My problem was that I didn't actually know where to edit the gemfile ( (looked at the wrong gem file originally)</p>
  
  <p>adding "gem 'pg'" to the Gemfile fixed it. Thanks to 'mu is too short'</p>