Forum: Ruby on Rails Pagination

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
396eb2e65b8a3572a3fa998a320bcb31?d=identicon&s=25 David Dvorak (dau)
on 2006-01-24 16:06
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.
F15fdc7cb2e911b3808837f2be244add?d=identicon&s=25 Adam Denenberg (Guest)
on 2006-01-24 16:30
(Received via mailing list)
This topic is locked and can not be replied to.