Launch bundle show and check the omniauth gem version. You may have updated omniauth when upgrading rails.
Version 1.* of omniauth requires a separate omniauth-twitter gem for twitter authentication. Since you donβt have it in the Gemfile , it is trying to download the Twitter gem class as Twitter middleware, which will result in a similar error.
To avoid similar problems in the future, use "~> 0.2.6" to control gems versions instead of ">= 0.2.6" . It protects you from unexpected large gemstone releases that you use.
source share