Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6123985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:04:50+00:00 2026-05-23T16:04:50+00:00

Interesting bug or side effect or something… using will_paginate to handle the pagination of

  • 0

Interesting bug or side effect or something…

using will_paginate to handle the pagination of two sets of data on the same screen (blog_article and favorites_list)

what happens is when the user clicks “next” for blog_articles, it also paginates favorites_lists, which disappears if there are fewer pages of favorites than blogs.

The issue (presumably) is that the url contains “page=3” and there’s no description of WHICH set of data is being paginated.

Any thoughts on the “right” way to have the url (and controller code) specify WHICH dataset is being paginated?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:04:51+00:00Added an answer on May 23, 2026 at 4:04 pm

    found the answer, the :param_name parameter

    will_paginate @users, :param_name => 'user_page'

    at
    http://candidcode.com/2009/11/03/paginating-multiple-models-using-will_paginate-on-the-same-page/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's an interesting bug (read: i've probably missed something) in Java Swing I spent
I found an interesting bug in a program that I implemented somewhat lazily, and
This code has an interesting bug: some_struct struct_array1[10] = {0}; some_struct struct_array2[10] = {0}
I noticed an interesting bug with the JQTouch platform and wanted to know if
After updating to php 5.3 one of our systems has developed an interesting bug.
I'm automating a web application (the Mantis bug tracker) and I'm getting an interesting
Interesting happened to me... I have a grid with rows of data, but the
An interesting issue came up recently. We came across some code that is using
I found an interesting bug and wanted to know you think. Brief background: I've
So I just fixed an interesting bug in the following code, but I'm not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.