gemfiles and branches

I came across this little nugget in the gemfile manual today:

Git repositories support a number of additional options. **branch**, **tag**, and **ref** You MUST only specify at most one of these options. The default is :branch => "master"

I can now specify the rails3 branch of acts_as_geocodable in my gemfile with:

gem 'acts_as_geocodable',
  :git => 'git://',
  :branch => 'rails3'


  1. September 28, 2010 at 14:04 PM

    What? acts_as_geocodable is updated for Rails 3? Can’t wait to see a gem release soon! ;)

    June 23, 2011 at 22:16 PM

    Nice tip - thank you!

  3. September 08, 2011 at 9:24 AM

    You saved me yesterday with OmniAuth–blogged here:


  4. September 08, 2011 at 10:40 AM

    @Rob Warner: Awesome. Glad this helped!