Will_paginate customisation

Hi,
I am using the will_paginate plugin for my application.
It is showing Prevoius 1,2,3…22,23,24 Next
but I like to have My view Page as
First Previous Next Last instad of showing the numbers,
How will I customise the plugin?

On May 18, 9:01 am, Doel S. [email protected]
wrote:

Hi,
I am using the will_paginate plugin for my application.
It is showing Prevoius 1,2,3…22,23,24 Next
but I like to have My view Page as
First Previous Next Last instad of showing the numbers,
How will I customise the plugin?

Take a look at the api docs for will paginate (http://gitrdoc.com/
mislav/will_paginate/tree/master/ ) will_paginate takes various
options that allow you to control what labels are used (or you can
even write your own link renderer if you need even more control.

Fred

You can use :page_links => false

# ==== Options
# Display options:
# * <tt>:previous_label</tt> -- default: "« Previous" (this

parameter is called :prev_label in versions 2.3.2 and
older!)
# * :next_label – default: “Next »”
# * :page_links – when false, only previous/next links are
rendered (default: true)
# * :inner_window – how many links are shown around the
current page (default: 4)
# * :outer_window – how many links are around the first
and the last page (default: 1)
# * :separator – string separator for page HTML elements
(default: single space)