title: Ruby on Rails : RVM and Rubygems Error
body: <p>I had just done "rvm rubygems 1.3.5" and "gem install rails -v 2.2.2", and both worked correctly and I was able to use rails for awhile. </p>
  
  <p>Now it seems like rails and rubygems just suddenly disappeared, so I reinstalled rubygem, but now trying to reinstall rails, I'm getting </p>
  
  <pre><code>ERROR:  While executing gem (NameError) uninitialized constant gem::Installer::ENV_PATHS
  </code></pre>
  
  <p>I get the same error when trying to do </p>
  
  <pre><code>gem update --system
  </code></pre>
  
  <p>Would appreciate any help.</p>
  
  <p>And my </p>
  
  <pre><code>gem list shows rails(2.2.2)
  </code></pre>
  
  <p>I'm trying to find other people with similar issues, and looks like it might have something to do with GEM PATH but I'm not sure where to go from there. In "gem environment" I get this for GEM PATHS:</p>
  
  <pre><code>~/.rvm/gems/ruby-1.8.7-p371 &lt;br /&gt;
  ~/.rvm/gems/ruby-1.8.7-p371@global &lt;br /&gt;
  </code></pre>