title: Installing Rails Path on Ubuntu with RVM
body: <p>I'm a linux noob running Ubuntu 10.04 and trying to install rails. I first installed ruby and then RVM and then downloaded and installed rubygems and then installed rails.</p>
  
  <p>Rails only seems to respond if I have a 'sudo' in front of the command. If I write 'rails new test' in the terminal I get this:</p>
  
  <pre><code>/usr/local/lib/site_ruby/1.8/rubygems.rb:779:in `report_activate_error': Could not find RubyGem rails (&gt;= 0) (Gem::LoadError)
      from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in `activate'
      from /usr/local/lib/site_ruby/1.8/rubygems.rb:1082:in `gem'
      from /usr/bin/rails:18
  </code></pre>
  
  <p>If I go to the terminal and write 'rails -v' I get the same thing:</p>
  
  <pre><code>   /usr/local/lib/site_ruby/1.8/rubygems.rb:779:in `report_activate_error': Could not find RubyGem rails (&gt;= 0) (Gem::LoadError)
          from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in `activate'
          from /usr/local/lib/site_ruby/1.8/rubygems.rb:1082:in `gem'
          from /usr/bin/rails:18
  </code></pre>
  
  <p>And if I go to the terminal and write 'sudo rails -v' I get the following:
  Rails 3.0.0.rc</p>
  
  <p>'gem environment' gives me this:</p>
  
  <pre><code>RUBYGEMS VERSION: 1.3.7
    - RUBY VERSION: 1.9.2 (2010-07-11 patchlevel -1) [i686-linux]
    - INSTALLATION DIRECTORY: /home/josh/.rvm/gems/ruby-1.9.2-rc2@rails3tutorial
    - RUBY EXECUTABLE: /home/josh/.rvm/rubies/ruby-1.9.2-rc2/bin/ruby
    - EXECUTABLE DIRECTORY: /home/josh/.rvm/gems/ruby-1.9.2-rc2@rails3tutorial/bin
  </code></pre>
  
  <p>My suspicion is that my path is not set up correctly but I'm not sure how to fix it.
  Suggestions?</p>