Good sample for Pagination with Many to Many Relationship?

Hi,

Something like this might work...

def search
    session[:pag_cache] ||= your_search_method
#with the return result formatted to work with ":conditions=>"
     @movie_pages, @movies= paginate :movies, :order_by => 'title ASC',
:per_page => 25, :conditions=> session[:pag_cache]
end