문제

I just updated to rails 3.2 and twitter gem 2.0.2

Now when I start web server I get this message

ArgumentError (wrong number of arguments (3 for 1)):
 twitter (2.0.2) lib/twitter.rb:10:in `new'

lib/twitter.rb:10 content

def new(options={})
  Twitter::Client.new(options)
end

Yesterday it worked with rails 3.1 and twitter gem 1.6.0

How can I fix this?

Thanks

도움이 되었습니까?

해결책

I added this one to Gemfile, and then it worked.

gem 'omniauth-twitter'
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top