0

我试图包括像以下这样的台风:

require 'typhoeus'

但我在日志文件中看到:

/dependencies.rb:229:in `require': No such file to load -- typhoeus (LoadError)

我将它包含在 gem 文件中,但我不知道我做错了什么

4

1 回答 1

0

通常使用 bundler 在 rails 项目上安装 gems。bundle 命令安装已添加到 Gemfile 的 gem。

然后,如果您使用bundler在项目中安装它并安装了 typhoeus gem,则不需要添加 require 'typhoeus' 。

于 2015-06-19T18:15:03.427 回答