# What's the problem with paginate?

**URL:** <https://www.ruby-forum.com/t/whats-the-problem-with-paginate/147700>\
**Category:** Rails\
**Created:** [September 4, 2008, 12:07pm UTC](https://www.ruby-forum.com/t/whats-the-problem-with-paginate/147700 "2008-09-04T12:07:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Murray](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/6f9a4e/32.png) [@Murray](https://www.ruby-forum.com/u/Murray)\
**Post date:** [September 4, 2008, 12:07pm UTC](https://www.ruby-forum.com/t/whats-the-problem-with-paginate/147700/1 "2008-09-04T12:07:18Z")

</div>

I’m new in rails, but it attracts me so much. When i learn “Agile Web  
Development with Rails, 2nd Edition”, i find that ‘pagniate’ is very  
useful.  
But when i try to make a sample by myself, the pagniate seems  
uneffective. No matter what the param ‘page’ is, it will only list the  
first page items.  
My source code is as simple as  
1 def list  
2 @agent\_relationship\_pages, @agent\_relationships =  
paginate :agent\_relationships, :per\_page =\> 4  
3 end  
If i change line 2 to  
2 @agent\_relationship\_pages, @agent\_relationships =  
paginate :agent\_relationships, :per\_page =\> 4, :page =\> params[:page]

error page comes, and shows “Unknown options: page”

What happens?
