Basic pagination for ActiveRecord::Relation objects