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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:44:45+00:00 2026-06-09T11:44:45+00:00

I have data and they be cut on some pages (10 results per page).

  • 0

I have data and they be cut on some pages (10 results per page).

code in controller:

@messages = Message.order('id DESC').page params[:page]

How I can show all results on one page if I want? It similar as 'see all' on page navigate.

  • 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-06-09T11:44:46+00:00Added an answer on June 9, 2026 at 11:44 am

    You can put a very high limit in the per_page option if you still want the paginate helpers to work in your view.

    @messages = Message.order('id DESC').page params[:page]
    if params[:all]
      @messages = @messages.per_page(Message.count) # you can also hardcod' it
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an activity that lets the user load some data when they press
I have some C structures related to a 'list' data structure. They look like
I have some hourly acquired data files. They filenames look like: 20120101-00.raw 20120101-01.raw ...
Will Oracle flatten multiple between clauses if they have overlapping data? In my application,
I have 2 advanced data grids, one above the other. They both have the
I am very interested in postgesql because they have a uuid data type. I
I have 4 entities in my core data with the same parent entity. They
I'm trying to track podcast data. They told me I have to use a
I have a number of chunks of data. For arguments sake we'll say they
I have some tabular data which has a lot of fields in it, and

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.