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

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -