Wrong number of arguments (3 for 1) after updating the rails from 3.1.1 to 3.1.3

I upgraded the rails 3.1.1 application to rails 3.1.3, and now, for every request, it only answers wrong number of arguments (3 for 1) . Unfortunately, it does not indicate where the error was, and the application trace is empty. I think there is a compatibility issue, but I really don't know where to dig.

There is my Gemfile and trace structure: https://gist.github.com/1519479

Thanks for any help.

+4
source share
1 answer

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.

+6
source

Source: https://habr.com/ru/post/1387948/


All Articles