2

我有兴趣使用各种堆栈驱动程序,但似乎无法使其与Rails一起工作。我将stackdriver添加到我的Gemfile中,运行bundle install并添加了配置块。在Rails中使用堆栈驱动程序gem

下面是我收到的错误:

/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)>' 

我曾尝试要求人工宝石,除其他外,它似乎并不像被越来越加载代码。

回答

2

原来,这是一个导致使用旧版本的堆栈驱动程序gem(0.2.2)的问题。这是由于与其他Google Gem产生冲突而发生的。