Using acts_as_sphinx with will_paginate in Rails

This is the short post I wish I’d found this afternoon to remind me: try the simplest thing which could possibly work. I was trying to work out whether acts_as_sphinx and will_paginate would work together.

It turns out they do, and it is the most obvious thing in the world.

Exhibit A: Using will_paginate on its own:

Exhibit B: Using acts_as_sphinx on its own:

Exhibit C: Stop looking at internet and just damn well try something:

In retrospect, so obvious; I should have had way more confidence on the awesome nature of all involved.

.:.