./textproc/ruby-will-paginate, Pagination for views of model queries

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2021Q3, Version: 3.3.1, Package name: ruby27-will-paginate-3.3.1, Maintainer: pkgsrc-users

Pagination is just limiting the number of records displayed. Why should
you let it get in your way while developing, then? This library makes
magic happen. Did you ever want to be able to do just this on a model:

@posts = Post.paginate :page => params[:page],
:order => 'created_at DESC'

and then render the page links with a single view helper? Well, now
you can.

<%= will_paginate @posts %>


Master sites:

SHA1: 8d6db2fa94c82539c794eeecffab791164c62e3f
RMD160: e78c81d45f5a0ab47a74d60236c6edd4137054c9
Filesize: 34 KB

Version history: (Expand)