Devise + OmniAuth Installation Error: undefined method `omniauth' for Devise:Module (NoMethodError)-Record and share programming errors
I’m working to allow users to FB Connect into my app for authentcation. My app currently uses devise so I’m following the tutorial here:
https://github.com/plataformatec/devise/wiki/OmniAuth%3A-Overview
After adding this to my gem file:
gem "oa-oauth", :require => "omniauth/oauth"
This to config/initializers/devise.rb:
config.omniauth :facebook, "APP_ID", "APP_SECRET"
This to app/models/User.rb
devise :omniauthable
After running bundle install, when I run rails s I get the error. Ideas why? Thanks
Originally posted 2013-08-31 05:29:20.