Forum: Ruby on Rails Resizing pagination per_page on existing results

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
125639ddcc0b9119bb84e29416ace63a?d=identicon&s=25 Scott (Guest)
on 2007-04-15 20:41
(Received via mailing list)
Is there an easy way to resize a pagination result? Effectively, I
want to have a dropdown on a results page that allows the user to
resize the number of results per page. Currently, I have something

      @search_results_pages, @search_results = paginate(:products,
                                   :conditions => ["category_id = ?",
                                   :per_page  => 10)

Is there a way I can augment the per_page on existing results if I say
wanted to change the 10 per page to 25 per page?


This topic is locked and can not be replied to.