Skip to Content Collective Idea Home

gemfiles and branches

by Brian Ryckbost

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](http://github.com/collectiveidea.com/acts_as_geocodable) in my gemfile with:
gem 'acts_as_geocodable',
  :git => 'git://github.com/collectiveidea/acts_as_geocodable.git',
  :branch => 'rails3'

Comments

Daniel Morrison
::

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


Dom
::

Nice tip - thank you!


Rob Warner
::

You saved me yesterday with OmniAuth–blogged here: http://www.grailbox.com/2011/09/using-omniauth-0-3-0-rc1-with-rails-3-1/

Thanks!


Brian Ryckbost
::

@Rob Warner: Awesome. Glad this helped!