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 510605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:07:51+00:00 2026-05-13T07:07:51+00:00

I want to do paging of lists of data with ruby on rails. Basically,

  • 0

I want to do paging of lists of data with ruby on rails. Basically, I want to show only 20 records at a time, with next and back buttons. It would be nice, but not required, to show links for the page numbers.

Something like this would be nice:

<< Previous 1 2 3 4 5 … Next >>

Is there a built in way to do this in ruby on rails (or something I can add) so I don’t have to write this myself?

  • 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-13T07:07:52+00:00Added an answer on May 13, 2026 at 7:07 am

    There is a plugin will_paginate that can be used to do pagination seamlessly in RoR. Find following links. They might be of some help.

    http://nasir.wordpress.com/2007/10/31/pagination-in-ruby-on-rails-using-will_paginate-plugin/

    https://github.com/mislav/will_paginate/wiki/

    https://github.com/mislav/will_paginate/wiki/simple-search

    http://blog.railsspace.com/past/2008/1/31/railsspace_will_paginate/

    Also I am sure that following railscast by Ryan Bates is going to be an excellent source of understanding. All rails casts are really good and give you deep understanding of basics.
    http://railscasts.com/episodes/51-will-paginate

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

Sidebar

Related Questions

When paging data, I want to not only return 10 results, but I also
.net MVC 2.0 question: The main problem is I want to paging my data
I want to apply paging to the list box which contains 1000s of records.
I'm using asp.net mvc. I want to add paging to the list of records.
I just want the paging like the google adsense. Means paging using the ajax..
I want to create this JSF table with paging and sorting. This is JSF
i want to ask a question about how to do paging in ASP.net coding
I am using a sql store procedure for custom paging. Now i want to
Want to show icon for settings UIBarButtonItem on UIToolbar than text button UIBarButtonItem *settingsButton
I don't want to hit the server and bring back every row when I

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.