简体   繁体   中英

How to install gems in rails 2.3.11 from environment.rb file

How to install gems in rails 2.3.11 from environment.rb file ?

Below is some of the code of environment.rb file:

RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION

require File.join(File.dirname(__FILE__), 'boot')

Rails::Initializer.run do |config|
  config.gem "authlogic", :version => '2.1.3'
  config.gem "paperclip", :version => '2.3.1.1'
  config.gem "geokit", :version => '1.5.0'
  config.gem "will_paginate", :version => '2.3.11'
  config.gem 'easy_roles', :source => 'http://gemcutter.org', :version => '1.0.0'
  config.gem 'fastercsv', :version => '1.5.3'
  config.gem 'chargify_api_ares', :version => '0.3.9'

end

How about rake gems install ?
This was the way gems were installed in the days before bundler...

使用安装

rake gems:install

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