Pagination in Rails

We all know pagination is going out of Rails core pretty soon. If you’re still using the built-in paginator classes, stop doing that! Seriously. They’re supposed to be baaaad for ya, or so I have heard.

But what to use instead?

Simple. Will paginate. End of discussion.

I used that plugin on a project today and it’s by far the best alternative. There are a few, but will_paginate is most versatile. I hear it doesn’t work well with acts_as_taggable, but we’ll cross that bridge when we get to it.

About joost

Senior Ruby on Rails web developer, with a focus on content and media management. I have built, and continue to maintain, some of the busiest sites in The Netherlands. I strongly advocate a pleasant and concise user experience, agile development, web standards and open source software.