ruby on rails - How to paginate two tables in one view -
I want to ask if I can use the plugin twice on a page? For example, I have a table with male users and on one page there is a table with women users on one or the other scene and I need to endorse both tables. My question is, what is the general solution to this problem?
You can tell the option to : param_name
parameter to use for the page number within the URL The name of (Default is : Page
). You can do this:
<% = will_paginate @males, param_name = & gt; 'Men_page'% & gt; & Lt;% = will_paginate @females, param_name = & gt; 'Women_page'% & gt;
Comments
Post a Comment