You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.
Pagination plugin supports just DataMapper so far, but more ORMs will be supported soon.
Example
The controller:
require "rango/contrib/pagination"
class Posts < Application
before :setup_page
protected
def setup_page
@page = Order.page(params[:page] || 1)
end
end
The template:
# it will be partial "gems/gems/rango-pagination/app/rango-pagination/views", page: @page
paginate @page