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
like:
@search_results_pages, @search_results = paginate(:products,
:conditions => ["category_id =
?",
params[: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?
Thanks,
Scott
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---