0

我以前遇到过其他人遇到的问题,但我无法在网上找到答案。当我做:

require "juggernaut" 

在 IRB 中或当我执行 Ruby 文件时

ruby test.rb

我明白了

no such file to load -- juggernaut

解决方案是将主宰添加到我的 Gemfile 中,对吗?

但是这个神奇的 Gemfile 在 Redmont 的什么地方呢?这不是 Rakefile 所在的位置。也许我必须从头开始创建一个全新的 Gemfile?那会是什么样子?

“捆绑者”如何参与这一切?

多谢你们!

4

1 回答 1

0

是的,您需要创建Gemfile. Bundler 会很乐意为您执行此操作:

$ bundle init
Writing new Gemfile to /foo/bar/Gemfile

$ cat Gemfile
# A sample Gemfile
source "http://rubygems.org"

# gem "rails"
于 2011-12-09T22:35:40.633 回答