title: Can't use 'rails' command after installing using gem install
body: <p>I've installed rails using 'gem install rails', but when I try to create a new project, I get the error:
  The program 'rails' is currently not installed.  You can install it by typing:</p>
  
  <pre><code>sudo apt-get install rails
  </code></pre>
  
  <p>There were no error messages when I ran 'gem install rails'. How come I cannot run rails commands?</p>
  
  <p>When I do sudo apt-get install rails, it will install an older version of ruby, 1.8. I want the newest, so I do not want to install rails from apt-get.</p>
  
  <p>Edit:
  Figured it out.
  Had to add PATH="${PATH}:/var/lib/gems/1.8/bin/" to .bashrc</p>