@users = User.paginate(:page => params[:page], :per_page => 10) works
for me.
On Jan 19, 11:41 am, James Bond
wrote:
> Can I limit results in will_paginate plugin?
> I want to paginate only 100 results 10 per page.
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~-~--~~---
Sorry I was too quick
something like Object.find(:all, :limit => 100).paginate(:page =>
params[:page], :per_page => 10)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this
You can use the parameter :per_page => 10 and in your search add
a :limit => 100
On Jan 19, 8:41 pm, James Bond
wrote:
> Can I limit results in will_paginate plugin?
> I want to paginate only 100 results 10 per page.
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~-~--~~
3 matches
Mail list logo