If you provide the :param_name option to the will_paginate helper method then you can page the two separately by providing separate page params. If you do this, you will need to maintain the previous page number in a session variable or cookie so you don't loose the page on the other list.
You may also want to consider using ajax to page them individually without refreshing the whole page. http://github.com/mislav/will_paginate/wiki/ajax-pagination <http://github.com/mislav/will_paginate/wiki/ajax-pagination> On Fri, Oct 22, 2010 at 5:32 AM, h0bit <[email protected]> wrote: > Hello everybody, > > I'm working with will_paginate and i want to know how to paginate two > portlet in the same view. Because the work just like this: When i > click in the next page in one portlet, it goes to the next page but in > the other portlet it also goes to the next changes. > > Can anyone help me? > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

