Flowdock
method

paginate

Importance_1
v1.2.6 - Show latest stable - 0 notes - Class: ActionController::Pagination::ClassMethods
paginate(collection_id, options={}) public

Creates a before_filter which automatically paginates an Active Record model for all actions in a controller (or certain actions if specified with the :actions option).

options are the same as PaginationHelper#paginate, with the addition of:

:actions:an array of actions for which the pagination is active. Defaults to nil (i.e., every action)
Show source
Register or log in to add new notes.