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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:53:35+00:00 2026-05-23T11:53:35+00:00

I currently have a users page which displays all the reviews that user has

  • 0

I currently have a users page which displays all the reviews that user has written. Each review is displayed as a partial (named _profile) and they are all shown on a page of an accordian. How can I add pagination to these review partials?

users show page

<div class="profile_reviews_container">
  <div id="accordion">
    <h3><a href="#">Reviews written</a></h3>
    <div class="profile_reviews_cont">
      <% @user.reviews.each do |review| %>
        <%= render "reviews/profile", :profile => review %>
      <% end %>
    </div>

    <h3><a href="#">Favourites</a></h3>
    <div>
    </div>
  </div>
</div>

Which controller do I add the .paginate call to and will the view contain <%= will_paginate @reviews %> or <%= will_paginate @profiles %>?

Thanks for any help its much appreciated!

  • 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-23T11:53:36+00:00Added an answer on May 23, 2026 at 11:53 am

    I would paginate the Reviews in the Users#show action. Something like:

    @reviews = @user.reviews.paginate page: params[:page]
    

    And then call:

    <%= will_paginate @reviews %>
    

    in the view.

    I would also change the name of the partial (or create a new one) to reviews/_review so you can just call:

    <%= render @reviews %>
    

    But that’s me.

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

Sidebar

Related Questions

I have a page of search results, each of which has an icon to
I currently have a page that allows a user to enter different types of
I have an open cart site that displays all the products on one page
I currently have an application that uses a browserfield to access an internet page
I currently have an iPhone app that lets the users take video, upload it
Currently I have an address column that is an embedded document in my users
I have an Classic ASP page that lets users search for properties and a
I'm currently trying to make a page via php which allows the user to
I have tables of reviews, venues and users. I currently have a _review.html.erb partial
I currently have an array that hold information that a user can do. 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.