title: How to use a branch in a fork of rails in a project with bundler
body: <p>I've got a fork of the <a href="http://github.com/traveliq/rails.git" rel="nofollow noreferrer">rails repo</a> on github, in which I've got a branch, based on the rails-2-3-stable branch. I want to develop some changes based on rails 2.3.10 together with my app. We're using bundler, and the app is versioned with SVN.</p>
  
  <p>What is the cleanest way to use my branch in the github fork of rails and share this across machines ?</p>
  
  <p>One way would be this:</p>
  
  <p><a href="https://stackoverflow.com/questions/1972113/how-do-i-install-edge-rails">how do I install edge rails?</a></p>
  
  <p>which would work, but doesn't feel clean enough, as we'd have to update the vendored version manually when the repo changes, and we'd have to check the git repo into svn.</p>
  
  <p>I've tried variations of this in the Gemfile:</p>
  
  <pre><code>gem 'rails', '2.3.10', :git =&gt; 'git://github.com/traveliq/rails.git', :branch =&gt; 'tiq-fixes'
  gem 'rails', '2.3.10', :git =&gt; 'git://github.com/traveliq/rails.git', :tag =&gt; 'v2.3.10'
  gem 'rails', '2.3.10', :git =&gt; 'git://github.com/rails/rails.git', :tag =&gt; 'v2.3.10'
  </code></pre>
  
  <p>All of those initially work when running <code>bundle install</code>, but when starting the app, it can't find rails in the load path:</p>
  
  <pre>
  /home/mt/Development/config/boot.rb:57:in `require': no such file to load -- initializer (LoadError)
      from /home/mt/Development/config/boot.rb:57:in `load_initializer'
      from /home/mt/Development/config/boot.rb:117:in `run'
      from /home/mt/Development/config/boot.rb:11:in `boot!'
      from /home/mt/Development/config/boot.rb:130
      from script/console:2:in `re
  </pre>
  
  <p>My Gemfile.lock entries are like this:</p>
  
  <pre>
  GIT
    remote: git://github.com/traveliq/rails.git
    revision: 25139ac92cea5b17791d71359bc3ae2a5d526652
    branch: tiq-fixes
    specs:
      rails (2.3.10)
  
  ...
  
  DEPENDENCIES
  
  ...
  
  rails (= 2.3.10)!
  
  </pre>