method
paginate
v1.0.0 -
Show latest stable
-
0 notes -
Class: ActionController::Pagination
- 1.0.0 (0)
- 1.1.6 (4)
- 1.2.6 (-1)
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.8
- 3.0.0
- 3.0.9
- 3.1.0
- 3.2.1
- 3.2.8
- 3.2.13
- 4.0.2
- 4.1.8
- 4.2.1
- 4.2.7
- 4.2.9
- 5.0.0.1
- 5.1.7
- 5.2.3
- 6.0.0
- 6.1.3.1
- 6.1.7.7
- 7.0.0
- 7.1.3.2
- 7.1.3.4
- 7.2.3
- 8.0.0
- 8.1.1
- What's this?
paginate(collection_id, options={})
public
Returns a paginator and a collection of Active Record model instances for the paginator’s current page. This is designed to be used in a single action; to automatically paginate multiple actions, consider ClassMethods#paginate.
options are:
| :singular_name: | the singular name to use, if it can’t be inferred by |
singularizing the collection name
| :class_name: | the class name to use, if it can’t be inferred by camelizing the singular name |
| :per_page: | the maximum number of items to include in a single page. Defaults to 10 |
| :conditions: | optional conditions passed to Model.find(:all, *params) and Model.count |
| :order: | optional order parameter passed to Model.find(:all, *params) |
| :order_by: | (deprecated, used :order) optional order parameter passed to Model.find(:all, *params) |
| :joins: | optional joins parameter passed to Model.find(:all, *params) and Model.count |
| :join: | (deprecated, used :joins or :include) optional join parameter passed to Model.find(:all, *params) and Model.count |
| :include: | optional eager loading parameter passed to Model.find(:all, *params) and Model.count |

