mislav / will_paginate

Pagination library for Rails and other Ruby applications
http://github.com/mislav/will_paginate/wikis
MIT License
5.71k stars 864 forks source link

will_paginate/active_record.rb:140:in `select_for_count' #611

Closed grassiricardo closed 4 years ago

grassiricardo commented 4 years ago

Hello guys,

I am a problem realized process for pagination in the controller.

`paginate(Contact.all)

ArgumentError: wrong number of arguments (given 0, expected 1) from /Users/alexj.calgaro/.rvm/gems/ruby-2.6.0/gems/will_paginate-3.1.6/lib/will_paginate/active_record.rb:140:in select_for_count'

can anybody help me? Thanks

grassiricardo commented 4 years ago

Hello, I actualized gem with gem update will_paginate and this problem did be resolved