[Rails] Re: will_paginate help

2009-01-19 Thread bearblu
@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/. --~--~-~--~~---

[Rails] Re: will_paginate help

2009-01-19 Thread Tranquiliste
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

[Rails] Re: will_paginate help

2009-01-19 Thread Tranquiliste
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/. --~--~-~--~~