pkgsrc/textproc/ruby-will-paginate/DESCR
jlam a5409fae57 Initial import of ruby18-will-paginate-2.2.2 as
textproc/ruby-will-paginate.

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 %>
2008-04-29 18:02:05 +00:00

11 lines
435 B
Text

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 %>