Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

Pagination

botanicus edited this page Sep 13, 2010 · 10 revisions

This page is up to date for Rango 0.1.

Introduction

Pagination plugin supports just DataMapper so far, but more ORMs will be supported soon.

Example

require "rango/contrib/pagination"

class Posts < Application
  before :setup_page
  private
  def setup_page
    @page = Order.page(params[:page] || 1)
  end
end
  1. it will be partial “gems/gems/rango-pagination/app/rango-pagination/views”, page: @page
    paginate @page
Clone this wiki locally