2012-11-13 22 views
2

我使用的omniauth Facebook的寶石和去/auth/facebook當我越來越:Rails的omniauth Facebook的未定義的方法`路徑」爲‘https://graph.facebook.com’:字符串

undefined method `path' for "https://graph.facebook.com":String 

這讓我感到非常緊張。

配置/初始化/ omniauth.rb

Rails.application.config.middleware.use OmniAuth::Builder do 
    provider :facebook, [xxx], [xxx] 
end 

的config/routes.rb中

match 'auth/:provider/callback', to: 'sessions#create' 
match 'auth/failure', to: redirect('/') 

我使用1.9.2

完整堆棧跟蹤:

faraday (0.8.4) lib/faraday/connection.rb:191:in `url_prefix=' 
faraday (0.8.4) lib/faraday/connection.rb:40:in `initialize' 
faraday (0.8.4) lib/faraday.rb:11:in `new' 
faraday (0.8.4) lib/faraday.rb:11:in `new' 
oauth2 (0.8.0) lib/oauth2/client.rb:51:in `connection' 
oauth2 (0.8.0) lib/oauth2/client.rb:63:in `authorize_url' 
oauth2 (0.8.0) lib/oauth2/strategy/auth_code.rb:18:in `authorize_url' 
omniauth-oauth2 (1.1.1) lib/omniauth/strategies/oauth2.rb:48:in `request_phase' 
omniauth-facebook (1.4.1) lib/omniauth/strategies/facebook.rb:94:in `request_phase' 
omniauth (1.1.1) lib/omniauth/strategy.rb:207:in `request_call' 
omniauth (1.1.1) lib/omniauth/strategy.rb:174:in `call!' 
omniauth (1.1.1) lib/omniauth/strategy.rb:157:in `call' 
omniauth (1.1.1) lib/omniauth/builder.rb:48:in `call' 

任何幫助將ridiculo我們很高興。

回答

0

我已將該問題降級爲faraday寶石版本爲0.7.6

相關問題