[英]Devise/Ruby on Rails: NoMethodError in Devise/sessionsController#create when trying to login existing user
I have a RoR application with Devise for user authentication. 我有一个带Devise的RoR应用程序,用于用户身份验证。 Devise is used for local user registration / authentication. Devise用于本地用户注册/身份验证。 Latest Devise is suppose to be also :omniauthable - supporting Facebook and other logins. 假设最新的Devise也是:omniauthable-支持Facebook和其他登录。 So I tried doing it as described in the instruction: https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview 因此,我尝试按照说明中的说明进行操作: https : //github.com/plataformatec/devise/wiki/OmniAuth :- 概述
Facebook authentication actually started to work. Facebook身份验证实际上开始起作用。 The problem is now that when local user tries to login now, I get this error: 现在的问题是,当本地用户尝试立即登录时,出现此错误:
NoMethodError in Devise/sessionsController#create undefined method `redirect_location' for # Devise / sessionsController#中的NoMethodError为#创建未定义的方法`redirect_location'
So, Facebook login works, and local login doesn't. 因此,Facebook登录有效,而本地登录无效。 Any hint what might be going wrong? 任何提示可能出什么问题了吗?
看起来像是与宝石集的混合,并且使用了来自不同版本的Devise的不同内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.