title: Unable to load gem during runtime - cannot load such file
body: <p>I have the following declaration in my Gemfile</p>
  
  <blockquote>
    <p>gem 'foo', :git => 'git@github.com:bar/foo.git'</p>
  </blockquote>
  
  <p>After I run bundle install, it is able to retrieve the gem under the following folder</p>
  
  <blockquote>
    <p>$ ls ~/.rvm/gems/ruby-1.9.3-p0@samples/bundler/gems/foo-4dc3d7bf8271</p>
  </blockquote>
  
  <p>But using the gem in my program using require 'foo' and running it raises the following problem.</p>
  
  <blockquote>
    <p>custom_require.rb:36:in `require': cannot load such file -- foo
    (LoadError)</p>
  </blockquote>
  
  <p>How do I resolve this?</p>
  
  <p>EDIT</p>
  
  <pre><code>/home/ec2-user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1
  /home/ec2-user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/i686-linu
  x
  /home/ec2-user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby
  /home/ec2-user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/vendor_ruby/1.9.1
  /home/ec2-user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/vendor_ruby/1.9.1/i686-li
  nux
  /home/ec2-user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/vendor_ruby
  /home/ec2-user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1
  /home/ec2-user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/i686-linux
  /home/ec2-user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/
  custom_require.rb:36:in `require': cannot load such file -- foo (LoadError)
          from /home/ec2-user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.
  9.1/rubygems/custom_require.rb:36:in `require'
  </code></pre>