# Will\_paginate problem and custom image button links

**URL:** <https://www.ruby-forum.com/t/will-paginate-problem-and-custom-image-button-links/136620>\
**Category:** Rails\
**Created:** [May 4, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/will-paginate-problem-and-custom-image-button-links/136620 "2008-05-04T16:39:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [May 4, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/will-paginate-problem-and-custom-image-button-links/136620/1 "2008-05-04T16:39:06Z")

</div>

Hello people,

I’m implementing the will\_paginate plugin with ajax links on my site  
(  
[http://weblog.redlinesoftware.com/2008/1/30/willpaginate-and-remote-links](http://weblog.redlinesoftware.com/2008/1/30/willpaginate-and-remote-links)  
). Everything works ver well except my page number links that are not  
being updated. For example, when clicking on page ‘3’, the latter  
remains clickable. Also I would like to customize the page number  
links to image buttons, but I’m not finding the way to do that.  
Has anyone came accross the same problem or has an idea on how I can  
achieve this.

Regards,

Joel

---

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [May 5, 2008, 1:20pm UTC](https://www.ruby-forum.com/t/will-paginate-problem-and-custom-image-button-links/136620/2 "2008-05-05T13:20:42Z")

</div>

You can find the customization of will\_paginate links here

> **[Formatting/styling will\_paginate](https://nasir.wordpress.com/2008/04/16/formattingstyling-will_paginate/)**
>
> I received few requests in the past ( personally and recently a comment on my post describing how to use will\_paginate plugin ) about how to format pagination links while using will\_paginate plugin…

---

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [May 5, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/will-paginate-problem-and-custom-image-button-links/136620/3 "2008-05-05T21:19:10Z")

</div>

will\_paginate checks to see what the current page is to disable the  
link to it, so if you’re not reloading the div with the will\_paginate  
code in it, the links won’t be updated. You’ll need to tell your  
action to update the will\_paginate portion of your view as well as the  
div that contains your paginated records.

-Kyle
