# Pagination problem

**URL:** <https://www.ruby-forum.com/t/pagination-problem/133771>\
**Category:** Rails\
**Created:** [April 3, 2008, 12:05pm UTC](https://www.ruby-forum.com/t/pagination-problem/133771 "2008-04-03T12:05:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vamsi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b38774/32.png) [@vamsi](https://www.ruby-forum.com/u/vamsi)\
**Post date:** [April 3, 2008, 12:05pm UTC](https://www.ruby-forum.com/t/pagination-problem/133771/1 "2008-04-03T12: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  
i want the page to be displayed (i,e; 2nd page if i give  
per\_page=\>10)  
how can i do that

```
please reply
```
