class BatchesController < ApplicationController def index @batches=Batch.all.page(params[:page]).per(2) end end