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

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


Branch: pkgsrc-2011Q3, Version: 3.0.0, Package name: ruby19-will-paginate-3.0.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/ruby19-base]

Master sites:

SHA1: 838f9a428d5f0d8a82398b0afb39cf9f0a10e493
RMD160: 37024afce0df360331b71dfaa0d37cc84897d2c1
Filesize: 31.5 KB

Version history: (Expand)