繁体   English   中英

Omniauth通过Twitter登录

[英]Omniauth to login through Twitter

我正在开发一个Rails应用程序,该应用程序允许用户通过Twitter登录,并且可以鸣叫和搜索。 以前对于其他应用程序,我使用omniauth通过Twitter登录,它工作正常(rails 3.1.3)(完整日志https://gist.github.com/2423973 )。 但是在此应用程序中,当我转到localhost:3000时出现以下错误

未定义的方法“包括?” 对于nil:NilClass(完整日志https://gist.github.com/2423983

这个应用程式正在使用

导轨3.2.1 omniauth 0.2.6

我尝试切换回Rails 3.1.3版本,但最终出现不同的错误

/home/santosh/.rvm/gems/ruby-1.9.2-p290@twitterapp/gems/activerecord-3.1.3/lib/active_record/base.rb:1088:in method_missing': undefined method mass_assignment_sanitizer ='for ActiveRecord: :Base:Class(NoMethodError)

那么问题到底出在哪里呢?

与所有流行的社交网络(例如Devise + Twitter + Facebook + Linkedin + Google + Github)集成的示例源代码

免责声明:我编写了该应用程序。 万一您遇到任何问题。 随意在stackoverflow上ping我或在github上打开一个问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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