ruby-on-rails - Rails 3/Bundler gem : 'undefined method ` setup' for Bundler:Module (NoMethodError)'

标签 ruby-on-rails ruby-on-rails-3 bundler

可以追溯到config/boot.rb,第7行:

require 'rubygems'
require 'bundler'
Bundler.setup

据说安装了 Bundler 0.8.1:
../Users/ashley$ sudo gem install bundler
Successfully installed bundler-0.8.1
1 gem installed
Installing ri documentation for bundler-0.8.1...
Installing RDoc documentation for bundler-0.8.1...

我所做的一切都遵循了this guide .任何人都知道出了什么问题?

谢谢 :)

最佳答案

尝试 gem install bundler --prerelease

关于ruby-on-rails - Rails 3/Bundler gem : 'undefined method ` setup' for Bundler:Module (NoMethodError)',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2177174/

相关文章:

ruby - `bundle install` 失败(因为 git 协议(protocol))

ruby-on-rails - Flash 消息在重新加载时仍然存在

ruby-on-rails - 为什么我的 ruby​​ case 语句不起作用?

jquery - 在 Rails 中加载表单后调用 JavaScript 函数

ruby-on-rails - attr_accessible 在 Rails 中如何工作?

ruby-on-rails - 即使我的应用程序使用 bundler ,我是否需要将 passenger 作为常规 gem 安装?

ruby-on-rails - 如何处理 rails/mongoid 中的出队连接超时?

javascript - 对如何在 Ruby on Rails 中使用 vanilla JavaScript 感到困惑

javascript - 如何从 Ruby on Rails 3 中的 View 助手添加动态 Javascript 代码?

ruby - 使用 rbenv : good idea? 在用户主目录中的全局 Gemfile