Will_paginate help

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

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

On Jan 19, 8:41 pm, James B. [email protected]

Sorry I was too quick

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

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

On Jan 19, 11:41 am, James B. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs