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

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


Branch: pkgsrc-2013Q2, Version: 3.0.4, Package name: ruby193-will-paginate-3.0.4, 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/ruby193-base]

Master sites: (Expand)

SHA1: 3bc69b6873011c06548fb5ced1aa8dccd5d96784
RMD160: 7bc8cbeb2f9c9d6ab17ca07cab514750d8f5b05c
Filesize: 34 KB

Version history: (Expand)