method
paginate
v1.2.6 -
Show latest stable
- 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) |