gema de Twitter 2.0.2 ArgumentError
-
14-11-2019 - |
Pregunta
Acabo de actualizar a Rails 3.2 y Twitter Gem 2.0.2.
Ahora, cuando inicio el servidor web, aparece este mensaje.
ArgumentError (wrong number of arguments (3 for 1)):
twitter (2.0.2) lib/twitter.rb:10:in `new'
lib/twitter.rb:10
contenido
def new(options={})
Twitter::Client.new(options)
end
Ayer funcionó con Rails 3.1 y Twitter Gem 1.6.0.
¿Cómo puedo arreglar esto?
Gracias
Solución
Agregué este a Gemfile y luego funcionó.
gem 'omniauth-twitter'
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow