title: How to get RVM to set correct gem path
body: <p>On a clean Mac OS X "Snow Leopard" install, I have a problem with RVM: It sets the Ruby path correctly but doesn't set the gem path. When I start a Rails server it mixes versions which doesn't work.</p>
  
  <p>To illustrate:</p>
  
  <blockquote>
    <p><strong>$ rvm system</strong><br>
    <strong>$ which ruby</strong><br>
    /usr/bin/ruby<br>
    <strong>$ which rails</strong><br>
    /usr/bin/rails<br>
    <strong>$ rvm use 1.9.2-head</strong><br>
    Using /Users/m/.rvm/gems/ruby-1.9.2-head<br>
    <strong>$ rvm gem list</strong>  </p>
    
    <p>LOCAL GEMS<br>
    [...]<br>
    rails (3.0.7)<br>
    [...]  </p>
    
    <p><strong>$ which ruby</strong><br>
    /Users/m/.rvm/rubies/ruby-1.9.2-head/bin/ruby<br>
    <strong>$ which rails</strong><br>
    /usr/bin/rails  </p>
    
    <p><strong>$ echo $GEM_PATH</strong><br>
    /Users/m/.rvm/gems/ruby-1.9.2-p180:/Users/m/.rvm/gems/ruby-1.9.2-p180@global  </p>
    
    <p><strong>$ echo $PATH</strong><br>
    /Users/m/.rvm/gems/ruby-1.9.2-p180/bin:/Users/m/.rvm/gems/ruby-1.9.2p180@global/bin:/Users/m/.rvm/rubies/ruby-1.9.2p180/bin:/Users/m/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin</p>
  </blockquote>
  
  <p>Any ideas what might be wrong?</p>