Pagination attributes

I have created a pagination with my own conditions :

@timesheets_pages = self, count, 30, @params[‘page’]

@timesheets = Timesheet.find :all,:include 

:conditions => ["employees.location=?
and employees.division=? and start_date>? and end_date < ?
:order=> “timesheets.start_date
:limit =>
: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?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs