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

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


Branch: pkgsrc-2017Q1, Version: 3.1.5, Package name: ruby23-will-paginate-3.1.5, 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/ruby23-base]

Master sites:

SHA1: d8e03a48b1412ba61b3ed7979d263fa3b29528d9
RMD160: c63d7cc7182e5bb77e7602318dc8e287bfeee3e4
Filesize: 36 KB

Version history: (Expand)