Forum: Ruby on Rails Pagination

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
David D. (Guest)
on 2006-01-24 17:06

maybe that I'm a stupid, but I don't know how I can working with
pagination. In all examples is written (for example) next:

def user_list
  @user_pages, @users = paginate(:users, :order_by => 'name')

So, it's OK (as a scaffold) for all set of users. But I need a little
other functionality. For example I need paginate only a little bit of
this set. I have sort user by their function in laboratory and I don't
know, how I can paginate for example only technicians (if it's their
count bigger than 5 person).

Could help me anybody, please?

Adam D. (Guest)
on 2006-01-24 17:30
(Received via mailing list)
This topic is locked and can not be replied to.