title: Ruby on Rails setup Ubuntu 14.04 LTS---gem install rails error
body: <p>Following the guide located here to setup ruby on rails: <a href="https://gorails.com/setup/ubuntu/14.04" rel="nofollow">https://gorails.com/setup/ubuntu/14.04</a></p>
  
  <p>I'm able to install ruby just fine using rbenv. I was able to get github setup. The step I'm getting an error on is when installing rails.</p>
  
  <p>The 'gem install rails' command produces the following error:</p>
  
  <pre><code>matt@matt-desktop:~$ gem install rails
  ERROR:  While executing gem ... (Gem::Exception)
      Invalid spec cache file in /home/matt/.gem/specs/api.rubygems.org%443/latest_specs.4.8
  </code></pre>
  
  <p>Any thoughts on how to overcome error?</p>