1
votes

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 methodmass_assignment_sanitizer=' for ActiveRecord::Base:Class (NoMethodError)

so where exactly is the problem?

1
where did you use this mass_assignment_sanitizer= ? in your codeuday
If you are going back to an older version of rails you need to make sure your application.rb is compatible, maybe create a new rails 3.1.3 app and reference thathouse9
@uDaY: i didn't use it any where..santosh
@house9: what about rails 3.2.1? cant i use omniauth with this?santosh
@santosh, dude try this link stackoverflow.com/questions/8647053/… hope it helpsuday

1 Answers

1
votes

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.