def paginate(*args)
      options = args.extract_options!
      per_page = options.delete(:per_page)
      page = options.delete(:page) || 1
      ::RailsPaginate::Collection.new(self, args.first || page, per_page)
    end
def paginate(*args)
      options = args.extract_options!
      per_page = options.delete(:per_page)
      page = options.delete(:page) || 1
      ::RailsPaginate::Collection.new(self, args.first || page, per_page)
    end
paginate with options

 page = active page
 per_page = how much entries per page