我有一个别人以前遇到过的问题,但我在网上找到的答案找不到任何地方。当我这样做的时候:
require "juggernaut" 在IRB中,或者当我用
ruby test.rb我得到了
no such file to load -- juggernaut解决方案是将juggernaut添加到我的Gemfile中,对吗?
但是这个神奇的Gemfile在雷蒙特的什么地方呢?这不是Rakefile所在的地方。也许我必须从头开始创建一个全新的Gemfile?那会是什么样子呢?
"bundler“是如何参与这一切的呢?
谢谢你们!
发布于 2011-12-10 06:35:41
是的,您需要创建Gemfile。Bundler会很乐意为你做这件事:
$ bundle init
Writing new Gemfile to /foo/bar/Gemfile
$ cat Gemfile
# A sample Gemfile
source "http://rubygems.org"
# gem "rails"https://stackoverflow.com/questions/8452513
复制相似问题