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

previous_page and next_page methods disappeared #194

Open
pjungwir opened this issue Oct 29, 2011 · 0 comments
Open

previous_page and next_page methods disappeared #194

pjungwir opened this issue Oct 29, 2011 · 0 comments

Comments

@pjungwir
Copy link

will_paginate 3.0.pre2 provided previous_page and next_page methods on the object returned from .paginate(:page => params[:page]). These were useful to check if I wanted to alter other parts of the view when a next/prev page was available. Now in 3.0.0 they are gone. It looks like this is a result of handing back the ActiveRecord::Relation rather than a WillPaginate::Collection. Can I get these methods back?

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

No branches or pull requests

1 participant