# Pagination attributes

**URL:** <https://www.ruby-forum.com/t/pagination-attributes/54750>\
**Category:** Rails\
**Created:** [March 14, 2006, 12:14am UTC](https://www.ruby-forum.com/t/pagination-attributes/54750 "2006-03-14T00:14:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://www.ruby-forum.com/u/chris)\
**Post date:** [March 14, 2006, 12:14am UTC](https://www.ruby-forum.com/t/pagination-attributes/54750/1 "2006-03-14T00:14:29Z")

</div>

I have created a pagination with my own conditions :

@timesheets\_pages = Paginator.new self, count, 30, @params[‘page’]

```
@timesheets = Timesheet.find :all,:include 

```

=\>{:employee=\>[:location,:division]},  
:conditions =\> ["employees.location=?  
and employees.division=? and start\_date\>? and end\_date \< ?  
",@location.id,@division.id,@start\_date,@end\_date],  
:order=\> “timesheets.start\_date  
desc”,  
:limit =\>  
@timesheets\_pages.items\_per\_page,  
:offset =\>  
@timesheets\_pages.current.offset

Where is the best place to store the filter parameters  
(@location,@division,@start\_date,@end\_date) of the find? Each time the  
find is run it must recall the params of the find. I’m currently storing  
them in the session. What is the best way?

Thanks,  
Chris
