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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:05:44+00:00 2026-05-24T21:05:44+00:00

Using the will_paginate gem, I want to create output that looks like this for

  • 0

Using the will_paginate gem, I want to create output that looks like this for the <a> tags:

<div class="navPagination">
  <span class="disabled prev_page">Prev</span>
  <span class="current">1</span>
  <a id="pag-top-2" rel="next" href="/aba/2011/07/30?page=2">2</a>
  <a id="pag-top-Next" class="next_page" rel="next" href="/aba/2011/07/30?page=2">Next</a>
</div>

Notice that both the <a> tags have a unique id selector. How can I create unique selector id’s for each will_paginate page?

Note: if this isn’t enough info, let me know and I’ll try to provide more context.

  • 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-24T21:05:45+00:00Added an answer on May 24, 2026 at 9:05 pm

    Here is a very detailled article about customizing will_paginate’s output writing your own renderer.

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

Sidebar

Related Questions

I have an AR query using 'will_paginate' that looks like this: paginate :all, :page
I am using version 2.3.11 of will_paginate, been using this gem for years. Suddenly,
I'm using the will_paginate gem for my Rails project and it's working beautifully. Unfortunately,
I'm using the will paginate gem from http://github.com/mislav/will_paginate Routes: map.resources :post do |post| post.resources
I'm using the Rails3 beta, will_paginate gem, and the geokit gem & plugin. As
My app is slowed down by N+1 queries. I'm using the will_paginate gem with
I'm using will_paginate to paginate my items eight at a time. I want to
Am using below specified gem acts-as-taggable-on(2.2.2) will_paginate(3.0.2) rails(3.0.3) ruby 1.8.7 i tried to use
I would like to test a controller that directly renders some JSON output (by
I'm using the will_paginate gem. The default is 30 elements per page. How do

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.