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

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


Branch: pkgsrc-2019Q4, Version: 3.1.6, Package name: ruby26-will-paginate-3.1.6, 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: 2b728aa1c462840e710d5941395d1dbd8eb669a9
RMD160: ecebcc8d7bfc126f19bc1666441dc658e7cfc0d0
Filesize: 36 KB

Version history: (Expand)