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

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


Branch: pkgsrc-2020Q2, Version: 3.3.0, Package name: ruby26-will-paginate-3.3.0, 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 %>


Required to run:
[lang/ruby26-base]

Master sites:

SHA1: 31285017616f8de8bf4f5836ebf8f1ff15e29cd5
RMD160: 8ccaa5167e7db9e17f7091e9d2353d8f9131bc42
Filesize: 37 KB

Version history: (Expand)