Will_paginate question

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?

Quoting [email protected] [email protected]:

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs