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

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


Branch: pkgsrc-2011Q1, Version: 2.3.15, Package name: ruby18-will-paginate-2.3.15, 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: 50f6a1bb53512fdebd22ae3c78deafab85f1c7db
RMD160: 0ca6028356c8b1d91187f6d0e77e1c0bfbcd15f4
Filesize: 35.5 KB

Version history: (Expand)