Twitter Gem 2.0.2 ArgumentError
-
14-11-2019 - |
Domanda
Ho appena aggiornato a Rails 3.2 e Twitter Gem 2.0.2
Ora quando avvia il server Web ho ricevuto questo messaggio
ArgumentError (wrong number of arguments (3 for 1)):
twitter (2.0.2) lib/twitter.rb:10:in `new'
.
Contenuto lib/twitter.rb:10
def new(options={})
Twitter::Client.new(options)
end
.
Ieri ha lavorato con Rails 3.1 e Gem Twitter 1.6.0
Come posso risolvere questo?
Grazie
Soluzione
I added this one to Gemfile, and then it worked.
gem 'omniauth-twitter'
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow