Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

will_paginate gem is misbehaving #297

Closed
lortza opened this issue Jul 21, 2020 · 0 comments · Fixed by #299
Closed

will_paginate gem is misbehaving #297

lortza opened this issue Jul 21, 2020 · 0 comments · Fixed by #299

Comments

@lortza
Copy link
Owner

lortza commented Jul 21, 2020

I'm not seeing the "next" link on the first page. If i reduce the number of items returned in the controller to 3:

.paginate(page: params[:page], per_page: 10)

then i get to see the link. but 5 and above does not work. That makes me think this may be promising:
mislav/will_paginate#460 (comment)

Item.with_translations.joins(:translations).where('item_translations.locale = ?', I18n.locale).order('item_translations.sort_string ASC').limit(4).count == 4

Related PR
#293

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant