我有一个使用黄瓜外的项目.如何使用我的gemfile中指定的版本加载宝石?
@H_301_3@解决方法
挖掘
the Bundler website:
>创建Gemfile(运行bundle init创建骨架Gemfile)
>捆绑安装
>在您的应用程序中:
# Only needed for ruby 1.8.x require 'rubygems' # The part that activates bundler in your app require 'bundler/setup' # require your gems as usual require 'some_gem' # ...or require all the gems in one statement Bundler.require
值得一看:
Bundler.io – Using Bundler in Your Appplication
Bundler.io – Bundler.setup and Bundler.require