如何从environment.rb文件在rails 2.3.11中安装gems?
以下是environment.rb文件的一些代码:
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
答案 0 :(得分:4)
rake gems install
怎么样?
这就是在捆绑器之前的几天安装宝石的方式......
答案 1 :(得分:1)
使用
安装rake gems:install