1

当尝试使用 Yelp 身份验证启动我的 Rails 服务器时,我收到此错误:

/var/lib/gems/1.9.1/gems/omniauth-1.2.1/lib/omniauth/builder.rb:50:in `rescue in provider': Could not find matching strategy for :yelp. You may need to install an additional gem (such as omniauth-yelp). (LoadError)

但是,在我的 gemfile 中,我有这行

gem 'omniauth-yelp'

然后跑了

bundle install

在 config/initializers/omniauth.rb 中,有一行

provider :yelp, ENV['yelp_consumer_key'], ENV['yelp_consumer_secret']

为什么我的应用程序没有注意到omniauth-yelp 已安装?

4

0 回答 0