Skip to content

I think there is a bug about customized page gap. #213

Closed
wants to merge 1 commit into from

2 participants

@keating
keating commented Dec 19, 2011

If there is a customized page gap, it should be used instead of the default one.

@keating
keating commented Dec 19, 2011

It's not serious, when I use config file, everything goes well :)
http://stackoverflow.com/questions/7073789/how-best-to-dry-will-paginate-options

@mislav
Owner
mislav commented Dec 19, 2011

Why would I want to display the text for :previous_label in place of the page gap?

I don't think you understand what's going on here. The i18n method you linked to is the preferred way to customize this.

@mislav mislav closed this Dec 19, 2011
@keating
keating commented Dec 20, 2011

really sorry, my mistake. I just want to say,
text = (@options[:page_gap].nil?) ? (@template.will_paginate_translate(:page_gap) { '…' }) :@options[:page_gap]

'…' is 'Page gap' in my system, I don't know why : (

@mislav
Owner
mislav commented Dec 20, 2011

See #171

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.