Ruby   发布时间:2022-04-03  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了红宝石 – Bundler:如何使用无轨?大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个使用黄瓜外的项目.如何使用我的gemfile中指定的版本加载宝石?

解决方法

挖掘 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

@L_874_3@

大佬总结

以上是大佬教程为你收集整理的红宝石 – Bundler:如何使用无轨?全部内容,希望文章能够帮你解决红宝石 – Bundler:如何使用无轨?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。