# Pagination in partial view

**URL:** <https://www.ruby-forum.com/t/pagination-in-partial-view/113844>\
**Category:** Rails\
**Created:** [September 5, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/pagination-in-partial-view/113844 "2007-09-05T14:58:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fero](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b2d939/32.png) [@fero](https://www.ruby-forum.com/u/fero)\
**Post date:** [September 5, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/pagination-in-partial-view/113844/1 "2007-09-05T14:58:41Z")

</div>

Hello.

Novice question: How can I use pagination function in partial view? I ve  
tried like this: ActionController::Pagination::paginate, but it throws  
NoMethodError. Is the way like Model.find or… ?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![fero](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b2d939/32.png) [@fero](https://www.ruby-forum.com/u/fero)\
**Post date:** [September 5, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/pagination-in-partial-view/113844/2 "2007-09-05T18:02:22Z")

</div>

On 9/5/07, Frantisek P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello.
> 
> Novice question: How can I use pagination function in partial view? I ve  
> tried like this: ActionController::Pagination::paginate, but it throws  
> NoMethodError. Is the way like Model.find or… ?

use the will\_paginate plugin [http://errtheblog.com/post/4791](http://errtheblog.com/post/4791)

and you should do the paginating in your controller and then pass the  
ivar to your partial

Adam

---

<div class="post-metadata">

**Author:** ![fero](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b2d939/32.png) [@fero](https://www.ruby-forum.com/u/fero)\
**Post date:** [October 7, 2007, 2:25am UTC](https://www.ruby-forum.com/t/pagination-in-partial-view/113844/3 "2007-10-07T02:25:52Z")

</div>

Hi,

There is a will\_paginate group:  
[http://groups.google.com/group/will\_paginate](http://groups.google.com/group/will_paginate)

Ask your usage questions there and I will be happy to respond.

- Mislav
