If you want to display multiple paginations in a single page then you have to change the detault page parameter. to change the default :page => params[:page] use below process
In controller add below
@featured = Product.paginate(:page => params[:featured_page])
@related = Product.paginate(:page => params[:related_page])
In view add below
<%= will_paginate @featured, :param_name => 'featured_page' %>
<%= will_paginate @related, :param_name => 'related_page' %>
No comments:
Post a Comment