Will_paginate help


#1

Can I limit results in will_paginate plugin?
I want to paginate only 100 results 10 per page.


#2

You can use the parameter :per_page => 10 and in your search add
a :limit => 100

On Jan 19, 8:41 pm, James B. removed_email_address@domain.invalid


#3

Sorry I was too quick

something like Object.find(:all, :limit => 100).paginate(:page =>
params[:page], :per_page => 10)


#4

@users = User.paginate(:page => params[:page], :per_page => 10) works
for me.

On Jan 19, 11:41 am, James B. removed_email_address@domain.invalid