gpt4 book ai didi

ruby-on-rails - Ruby on Rails,LinkedIn :Module error

转载 作者:数据小太阳 更新时间:2023-10-29 08:05:42 24 4
gpt4 key购买 nike

有人遇到过这个错误吗?

NoMethodError (undefined method `new' for LinkedIn:Module)

我认为这与 omniauth 和 linkedin 有关。这是我的 Gemfile:

gem 'omniauth'
gem 'linkedin', :git => "git://github.com/redbeard-tech/linkedin.git", :branch => 'jsapi'

我正在使用:

  • ruby 1.8.7(2010-01-10 补丁级别 249)
  • rails 3.0.5

可能是什么原因?

最佳答案

检查您使用的是哪个版本的 omniauth。我们最近遇到了这个问题,它来 self 们拥有 omniauth 0.3.x 的开发环境和获得新 1.0 版本的新环境。关于omniauth github site它说:

OmniAuth 1.0 has several breaking changes from version 0.x. You can set the dependency to ~> 0.3.2 if you do not wish to make the more difficult upgrade. See the wiki for more information.

我怀疑你被它咬了。

关于ruby-on-rails - Ruby on Rails,LinkedIn :Module error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8284063/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com