Rails 3 user for Rails 2: installing gems without gemfile?

I am familiar with Rails 3, but not with rails 2. I just inherited a rails 2 project without a Gemfile, but a bunch of config.gem lines in config/environment.rb

I just wonder how I install them. bundle install returns Could not locate Gemfile .

+8
ruby-on-rails gem
source share
2 answers

You can set gems in rails 2.x with the rake command

  rake gems:install 
+13
source share

You can use bundle install if you use this guide:

http://gembundler.com/rails23.html

To have backward compatibility for bundler.

+2
source share

All Articles