title: Capistrano - RAILS_GEM_VERSION Error
body: <p>I can't figure this out.  Capistrano keeps giving me this error:</p>
  
  <pre><code> ** [out :: myserver.net] Missing the Rails 2.1.1 gem. Please `gem install -v=2.1.1 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.
  </code></pre>
  
  <p>So, like the good error message says, I checked my <code>config/environments.rb</code> file and saw that indeed the <code>RAILS<code>_</code>GEM<code>_</code>VERSION</code> was indeed set to </p>
  
  <pre><code>RAILS_GEM_VERSION = '2.1.1' unless defined? RAILS_GEM_VERSION
  </code></pre>
  
  <p>I changed it to '2.1.2', since that's what I have on my server, and tried to capify again: same error. </p>
  
  <p>So, I upgraded Rails on my development machine (2.1.1 -> 2.1.2) and tried it again: same error.  </p>
  
  <p>I tried commenting out the line: same error. </p>
  
  <p>Finally, I logged on to my server, deleted everything in my project directory (removing any cached copies of <code>config/environments.rb</code>, I hoped), and tried it again.  <em>Same Error</em>.</p>
  
  <p>What's going on?!</p>