class TestController < ApplicationController def index @collection = Model.page(params[:p] || 1).per(2) end end