(FYI:我正在按照railscast#241的Twitter Omniauth进行操作。我已经成功使用了Twitter,现在要切换到Facebook)
一旦我使用Omniauth登录Facebook,就会出现这个错误:
Faraday::Error::ConnectionFailed
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
这是什么意思?
这是我的代码
Rails.application.config.middleware.use OmniAuth::Builder do
provider :facebook, '<key from fb>', '<another key from fb>'
end
我的代码实际上并没有太多内容,我只有一个 sessionController,我想使用 to_yaml 来查看 request.env 中的内容。
class SessionsController < ApplicationController
def create
raise request.env["omniauth.auth"].to_yaml
end
end
如何解决 Faraday 错误?
Error running 'make', please read /usr/local/rvm/log/ruby-1.9.3-p392/make.log There has been an error while running make. Halting the installation.
- Caroline SchnappBeware, 'rvm pkg ...' is deprecated, read about the new autolibs feature: 'rvm help autolibs'.
。如果使用rvm autolibs ...
,你的有用指令会如何改变? - Kevin Meredith