You can use :param_nameto change the query string parameter:
<%= will_paginate @posts, :param_name => :posts_page %>
<%= will_paginate @comments, :param_name => :comments_page %>
Note that in your controller you must also change this:
@posts = Post.paginate :page => params[:posts_page]
@comments = Comment.paginate :page => params[:comments_page]
user142019
source
share