# Pagination for join table data

**URL:** <https://www.ruby-forum.com/t/pagination-for-join-table-data/146543>\
**Category:** Ruby\
**Created:** [August 22, 2008, 6:32am UTC](https://www.ruby-forum.com/t/pagination-for-join-table-data/146543 "2008-08-22T06:32:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganeshk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/7cd45c/32.png) [@ganeshk](https://www.ruby-forum.com/u/ganeshk)\
**Post date:** [August 22, 2008, 6:32am UTC](https://www.ruby-forum.com/t/pagination-for-join-table-data/146543/1 "2008-08-22T06:32:28Z")

</div>

Hi,  
I have two tables one is departments and subjects  
both table having many to many relationship

@department = Department.fin(params[:id]  
@department.subjects will give all the subjects under that department

but i need to apply pagination for for subjects is there any solution  
plz reply
