Rails Pagination: Top Resources
Today I needed to figure out how to best paginate results from an acts_as_ferret search (Go here for a tutorial on acts_as_ferret.) Kevin Clark told me that I shouldn’t be using the built-in rails pagination, though I was not the only person wondering why the hell it’s in there if I’m not supposed to use it. Lazy as always, I went looking for someone else’s paginating code. Here’s what I found. I’ll update this entry with my impressions of the code once I’ve actually used it:
Cardboard Rocket offers a paginating find plugin.
Ilya Grigorik provides a discussion of aforementioned plugin, plus the helper and view code to go along with it.
He also offers a version for acts_as_ferret paginating find.
Also, the chowhound developer provides some alternate pagination code, which I was thrilled to find, not least because I used to love the content of chowhound (way back when we ate out a lot) but hate the format (message board circa 1992). And yay, now chowhound has the standard rails look-and-feel, of which I am a big fan.
By the way, if you’re new to Rails, you should be aware that the pagination issue was a minor explosion in the rails-world. File that one away in your “rails cultural literacy” dir, and you’ll be well on your way to faking everyone out about how long you’ve been in RoR land.
