class Admin::ResourceController
def pagination_parameters
the per_page figure can be set in several ways:
return a hash of page and per_page that can be used to build a will_paginate collection
def pagination_parameters pp = params[:pp] || TrustyCms.config['admin.pagination.per_page'] pp = (self.class.default_per_page || 50) if pp.blank? { :page => (params[:p] || 1).to_i, :per_page => pp.to_i } end