title: Emacs shell can't find ruby gems -- e.g., Could not find RubyGem haml (>= 0) (Gem::LoadError)
body: <p>My emacs shell can't load any of my installed ruby gems.  I'm getting a Gem::LoadError when trying to execute any installed gem from emacs but it works from Terminal.  Here's all the information I've reviewed in my environment.  Thanks for any help!</p>
  
  <ul>
  <li>Running Emacs.app on my Mac OSX Snow
  Leopard (from <a href="http://emacsformacosx.com/" rel="noreferrer">emacsformacosx</a>
  using universal dmg).</li>
  <li>Installed RVM, then used RVM to
  install Ruby 1.9.2 and 1.8.7.</li>
  <li>Installed several gems, including
  rails and haml.</li>
  <li>Did not use root for these installs.</li>
  </ul>
  
  <p>From Terminal (bash), I'm able to run the gems (e.g., haml somepage.haml or rails create someapp)</p>
  
  <p>In emacs, I've set the shell (bash) path to load the same as the terminal shell (via ~/.MacOSX/application.plist).</p>
  
  <p><code>echo $PATH</code> returns the same result from terminal and emacs</p>
  
  <p>I can run IRB and rvm from emacs shell. </p>
  
  <p>Running <code>gem list</code> from emacs shell shows I have haml (3.1.2, 3.1.1) installed.
  Running: <code>which rvm, which gem, which haml</code> #all return the same path in both Terminal and Emacs</p>
  
  <p>When I try to execute a gem (e.g., haml), I get the following:</p>
  
  <blockquote>
    <p>/Users/me/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:900:in
    <code>report_activate_error': Could not
    find RubyGem haml (&gt;= 0)
    (Gem::LoadError)  from
    /Users/me/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:248:in
    </code>activate'    from
    /Users/me/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:1276:in
    <code>gem'     from
    /Users/me/.rvm/gems/ruby-1.9.2-p180/bin/haml:18:in
    </code>'</p>
  </blockquote>