Pagination

Hello,

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’)
end

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?

Thanks.

http://wiki.rubyonrails.com/rails/pages/HowtoPagination

-adam