简体   繁体   中英

Devise Omniauth callback error

I have a web application running Devise and Omniauth to authenticate a user on Facebook. When I click on a link to log in though Facebook, it routes me to

/users/auth/facebook/callback?state=[state]code=[code]

Which is correct. But the page gives me the following error.

uninitialized constant ApplicationController::DeviseController

The line that it points to is in the ApplicationController

DeviseController.respond_to :html, :json

I've included my relevant code here https://gist.github.com/testrecord/5050992 In addition, I do have it set up in the initializer.

Has anyone seen an error like this? Any help is appreciated.

It may be a good think to watch -. this screencast

Also the thing that saved me is the Original Wiki

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM