Rails Pagination: Top Resources

Posted by amy on May 22, 2007

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.

Theoretically Related Posts
  • JSON, XML, and REST
  • Amy’s guide to choosing and using rails plugins (With Bonus Checklist!)
  • how did I ever live without xkcd?
  • From _A Guide to Testing the Rails_, a fantastic explanation of why we should write test code
  • Trackbacks

    Use this link to trackback from your own site.

    Comments

    Leave a response

    Comments