title: Using RVM on Ubuntu 12.04 to use Rails. The program 'rails' is currently not installed
body: <p>I installed RVM from scratch following the installation guide on the official website. I installed Rails, created a dummy app and everything worked fine.</p>
  
  <p>I shut off my machine.</p>
  
  <p>The next morning, I turned on the machine again (cold boot) and the tried running "<code>rails -v</code>" from the console, but I get the following error message:</p>
  
  <blockquote>
    <p>sergio@Sergio-work ~ $ rails -v </p>
    
    <p>The program 'rails' is currently not
    installed.  You can install it by typing: sudo apt-get install rails</p>
  </blockquote>
  
  <p>I can run <code>ruby -v</code> just fine, and get the following message:</p>
  
  <blockquote>
    <p>sergio@Sergio-work ~ $ ruby -v</p>
    
    <p>ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]</p>
  </blockquote>
  
  <p>I can also run <code>gem list</code> just fine, output:</p>
  
  <pre><code>sergio@Sergio-work ~ $ gem list
  
  *** LOCAL GEMS ***
  
  actionmailer (3.2.3)
  actionpack (3.2.3)
  activemodel (3.2.3)
  activerecord (3.2.3)
  activeresource (3.2.3)
  activesupport (3.2.3)
  arel (3.0.2)
  builder (3.0.0)
  bundler (1.1.4)
  coffee-rails (3.2.2)
  coffee-script (2.2.0)
  coffee-script-source (1.3.3)
  erubis (2.7.0)
  execjs (1.4.0)
  faraday (0.8.0)
  google_drive (0.3.0)
  hike (1.2.1)
  httpauth (0.1)
  i18n (0.6.0)
  journey (1.0.3)
  jquery-rails (2.0.2)
  json (1.7.3)
  libv8 (3.3.10.4 x86_64-linux)
  mail (2.4.4)
  mime-types (1.18)
  multi_json (1.3.6, 1.3.5)
  multipart-post (1.1.5)
  mysql2 (0.3.11)
  nokogiri (1.5.0)
  oauth (0.4.6)
  oauth2 (0.7.1)
  polyglot (0.3.3)
  rack (1.4.1)
  rack-cache (1.2)
  rack-ssl (1.3.2)
  rack-test (0.6.1)
  rails (3.2.3)
  railties (3.2.3)
  rake (0.9.2.2)
  rdoc (3.12)
  rubygems-bundler (1.0.2)
  rvm (1.11.3.3)
  sass (3.1.19, 3.1.18)
  sass-rails (3.2.5)
  sprockets (2.1.3)
  sqlite3 (1.3.6)
  therubyracer (0.10.1)
  thor (0.14.6)
  tilt (1.3.3)
  treetop (1.4.10)
  tzinfo (0.3.33)
  uglifier (1.2.4)
  </code></pre>
  
  <p>Why doesn't my <code>rails -v</code> command work anymore? I used to have this "hack" where I would need to run a command in terminal, "<code>source something something</code>" once, before rails would be "recognized" as an actual command. I had to this once per terminal, meaning if I closed a terminal I had to re-run this after opening a new window terminal.</p>
  
  <p>I can't seem to find this command anymore on the Help section for RVM (where I originally found it) and since I'm kind of new to Linux, these advanced configurations are complex to me.</p>
  
  <p>Any ideas?</p>