2

我对使用各种堆栈驱动程序产品很感兴趣,但我似乎无法让它与 Rails 一起使用。我添加stackdriver到我的 Gemfile,运行bundle install并添加了配置块。

这是我得到的错误:

/usr/local/opt/rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/railties-4.2.7.1/lib/rails/railtie/configuration.rb:95:in `method_missing': undefined method `google_cloud' for #<Rails::Application::Configuration:0x007fbc843e0c18> (NoMethodError)
    from /Users/preston/projects/myapp/config/environments/development.rb:74:in `block in <top (required)>'

我曾尝试手动要求 Gem,除此之外,它似乎没有加载代码。

4

1 回答 1

2

结果是导致使用旧版本的 stackdriver gem (0.2.2) 的问题。这是由于与不同的 Google gem 发生冲突而发生的。

于 2017-06-22T20:22:35.523 回答