vendredi 4 novembre 2016

wrong number of arguments (given 2, expected 0..1) + paginate

I have issue with paginate group, my controller index method is

def index
 @coupons = Coupon.page(page_number)
end

view model is

.paginate.group
   = paginate @coupons

Throwing an error at this line Showing /home/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/kaminari-0.14.1/app/views/kaminari/_paginator.html.erb where line #14 raised:

wrong number of arguments (given 2, expected 0..1)

Extracted source (around line #44):

42

43 .paginate.group

44 = paginate @coupons

Help out me to fix this, i dont want to include paginates_per , i want to implement as paginate method? Is ther any relation to bart-ssl requirement gem to ArgumentError, if i delete this gem, it works fine

Aucun commentaire:

Enregistrer un commentaire