# pagination problem

**URL:** <https://discuss.rubyonrails.org/t/pagination-problem/27493>\
**Category:** rubyonrails-talk\
**Created:** [April 3, 2008, 10:05am UTC](https://discuss.rubyonrails.org/t/pagination-problem/27493 "2008-04-03T10:05:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [April 3, 2008, 10:05am UTC](https://discuss.rubyonrails.org/t/pagination-problem/27493/1 "2008-04-03T10:05:46Z")

</div>

hi all

i've 2 methods one contains details of posts and i used pagination for that and if i used edit on posts(through gui ) then another method is called and i passed only the post id through javascript . so after editing the post if i click on a button to see all posts it goes to the first method but it shows only the first 10 if i edited the 11th post &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i want the page to be displayed (i,e; 2nd page if i give per\_page=\>10) &nbsp;&nbsp;how can i do that

&nbsp;&nbsp;&nbsp;&nbsp;please reply
