Hi guys and gals,
I’ve been googling and scouring the wiki and re-reading the agile book
for hours to no avail.
Can someone please explain to me in a nutshell how I can paginate a
result with conditions? Here’s a simple example.
@members = Member.find_by_first_name(‘Sean’)
@member_pages, @members = paginate :members, :per_page => 40
<%= render_partial “partial/paginator”, @member_pages %>
… then I’ve got a partial that does the actual links and stuff.
Everything works great except that my pages show all results in the
database, not just the ones with first_name of ‘Sean’. What am I doing
wrong? This is driving me crazy