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

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


Branch: pkgsrc-2018Q1, Version: 3.1.6, Package name: ruby24-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 %>


Required to run:
[lang/ruby24-base]

Master sites:

SHA1: 2b728aa1c462840e710d5941395d1dbd8eb669a9
RMD160: ecebcc8d7bfc126f19bc1666441dc658e7cfc0d0
Filesize: 36 KB

Version history: (Expand)