简体   繁体   中英

Omniauth to login through Twitter

i am developing a rails application, which allows users to login through twitter and they can tweet and search. previously for some other application i used omniauth to login through twitter it worked fine(rails 3.1.3)(full log https://gist.github.com/2423973 ). but in this application i am getting the following error when i go to localhost:3000

undefined method `include?' for nil:NilClass(full log https://gist.github.com/2423983 )

this app is using

rails 3.2.1 omniauth 0.2.6

i tried switching back to the rails 3.1.3 version but ended up with different error

/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)

so where exactly is the problem?

Sample source code which integrates with all the popular social networks ie Devise + Twitter + Facebook + Linkedin + Google + Github

Disclaimer: I wrote that application. In case you are facing any issues. Feel free to ping me on stackoverflow or open an issue on github.

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