Will_paginate Plugin on two objects on same page
        Posted  
        
            by piemesons
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by piemesons
        
        
        
        Published on 2010-06-18T11:04:42Z
        Indexed on 
            2010/06/18
            11:23 UTC
        
        
        Read the original article
        Hit count: 257
        
Hello I am using will_paginte plugin on two objects on a same page. Like on stackoverflow. There is a profile page on which there is a pagination on two things QUestions and answers.
I am having problem ie:-- when user is clicking on questions pagination page 2. answers page are also updating. The reason is both is sending a post variable ie
  params[:page]
How to change this variable so that only one should be updated. and how to maintain that user should not lose the other page.
ie
he is on 3rd page of questions and 1st page of answers and now he click on 5th page of the questions the result should be 3rd page of questions and 5th page of answers.
© Stack Overflow or respective owner