Día: 14 de diciembre de 2011

  • rails + omniauth + omniauth-twitter

    Llevo toda la tarde con el error : [shell] Error authenticating /auth/failure?message=invalid_response [/shell] He estado siguiendo el manual de asciicast 241 241-simplemente-omniauth y me faltó por crear el método create_with_omniauth [shell] /app/models/user.rb class User < ActiveRecord::Base def self.create_with_omniauth(auth) create! do |user| user.provider = auth[«provider»] user.uid = auth[«uid»] user.name = auth[«user_info»][«name»] end end end [/shell]