In rails 3 you can use bleeding edge gems like: gem "devise", :git => "git://github.com/plataformatec/devise.git"
. How do you do that with config.gem in rails 2.3.x?
views:
16answers:
2
A:
For that specific example I think you can do:
config.gem 'devise', :source => 'http://github.com/plataformatec/devise.git'
John Topley
2010-06-16 20:36:10
I think source specifies where the gem is hosted. It used to be that you could put github or gemcutter in there. Now it's just gemcutter. Also, when I tried that and ran rake gems:install it didn't install anything new. I'd expect to see it download the project from github like bundle install does in rails 3.
Trevor Hartman
2010-06-16 20:58:23
A:
The best option is to use bundler on rails 2.3.x or switch to rails 3.
Heroku's docs are helpful: http://docs.heroku.com/bundler
Trevor Hartman
2010-06-17 20:01:27