# Will\_paginate question

**URL:** <https://www.ruby-forum.com/t/will-paginate-question/153781>\
**Category:** Rails\
**Created:** [November 21, 2008, 12:45am UTC](https://www.ruby-forum.com/t/will-paginate-question/153781 "2008-11-21T00:45:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [November 21, 2008, 12:45am UTC](https://www.ruby-forum.com/t/will-paginate-question/153781/1 "2008-11-21T00:45:35Z")

</div>

I’m using will\_paginate and in my views I have two images, a left  
arrow and a right arrow, that act as my pagination links. Is there a  
method built in to generate the URL’s for those images?

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [November 21, 2008, 1:34am UTC](https://www.ruby-forum.com/t/will-paginate-question/153781/2 "2008-11-21T01:34:44Z")

</div>

Quoting removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> I’m using will\_paginate and in my views I have two images, a left  
> arrow and a right arrow, that act as my pagination links. Is there a  
> method built in to generate the URL’s for those images?

WillPaginate::ViewHelpers.pagination\_options[:previous\_label] =  
link\_to(image\_tag …  
WillPaginate::ViewHelpers.pagination\_options[:next\_label] =  
link\_to(image\_tag …

HTH,  
Jeffrey
