简体   繁体   中英

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

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 how I to install these. bundle install returns Could not locate Gemfile .

您可以使用rake命令在rails 2.x中安装gem

   rake gems:install

You can use bundle install if you use this guide:

http://gembundler.com/rails23.html

To have "backwards" compatibility for bundler.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM