【问题标题】:How to include gems in the project using Rails 2 and Ruby 1.9.3?如何使用 Rails 2 和 Ruby 1.9.3 在项目中包含 gem?
【发布时间】:2017-09-11 09:12:51
【问题描述】:

我的项目是用

构建的
Rails 2.3.18
ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-linux]

我的项目没有任何 Gemfile,所以如何在其中包含 gem。

【问题讨论】:

    标签: grails-2.0 ruby-1.9.3 grails-2.3 grails-2.4 grails-2.2


    【解决方案1】:

    编辑 app/config/environment.rb

    config.gem 'will_paginate', :version => '~> 2.3.16'
    config.gem 'ssl_requirement'
    config.gem "ambethia-recaptcha", :lib => "recaptcha/rails", :source => "http://gems.github.com"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多