title: Pg gem on Mavericks : NameError: uninitialized constant PG
body: <p>I followed this thread (<a href="https://stackoverflow.com/questions/20224483/cannot-install-pg-gem-in-mavericks-with-postgres-app">Cannot install pg gem in Mavericks with Postgres.app</a>) to get the 'pg' gem successfully working with Postgres.app on Mavericks.</p>
  
  <p>Here is the output of gem list:</p>
  
  <pre><code>mythlabs:~ myth$ gem list pg
  
  *** LOCAL GEMS ***
  
  pg (0.17.1)
  mythlabs:~ myth$ 
  </code></pre>
  
  <p>However, now that I have the gem installed, in irb :</p>
  
  <pre><code>mythlabs:~ myth$ irb
  1.9.3-p0 :001 &gt; require 'pg'  =&gt; true 
  1.9.3-p0 :002 &gt; conn = PG.connect( dbname: 'myth' ) NameError: uninitialized constant PG    from (irb):2    from /Users/myth/.rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `&lt;main&gt;'
  1.9.3-p0 :003 &gt;
  </code></pre>
  
  <p>How can I go around fixing this problem?</p>