开发者

Rails 3 user to Rails 2: Installing gems without a gemfile?

开发者 https://www.devze.com 2023-02-25 06:37 出处:网络
I\'m familiar with Rails 3, but not rails 2. I\'ve just inherited a rails 2 project with no Gemfile, but a bunch of config.gem lines in config/environment.rb

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

I'm just wondering ho开发者_开发知识库w I to install these. bundle install returns Could not locate Gemfile.


You can install gems in rails 2.x by using the rake command

   rake gems:install


You can use bundle install if you use this guide:

http://gembundler.com/rails23.html

To have "backwards" compatibility for bundler.

0

精彩评论

暂无评论...
验证码 换一张
取 消