I am following:
http://stjhimy.com/posts/14-allowing-devise-login-with-facebook-account
When I place the following in /initializers/devise.rb
config.oauth :facebook, 'actual_api_id', 'actual_api_secret',
:site => '
https://graph.facebook.com/',
:authorize_path => '/oauth/authorize',
:access_token_path => '/oauth/access_token',
:scope => %w(email)
.. and start the server (rails s)
I get: devise.rb:143:in `block in <top (required)>': undefined method
`oauth' for Devise:Module (NoMethodError)
The doc at
http://github.com/plataformatec/devise/wiki/OAuth2:-Overview
says, "WARNING: THIS REQUIRES DEVISE FROM GIT REPOSITORY. " Does this
have anything to do with this?
I have the following in my gemfile:
gem 'devise'
gem 'oauth2'
gem "cancan"
gem 'friendly_id', '~> 3.1.3'
gem 'activemerchant'
gem 'paperclip'
gem 'will_paginate', '~> 3.0.pre2'