Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Can't opt out of using simple search feature #315

Closed
rthbound opened this Issue · 4 comments

2 participants

@rthbound

I've looked at the available options, but can't find what I think I need.

I would love if there was an option to tell will_paginate "don't try to use the simple search feature!"

The way the feature modifies the pagination links has my hands more tied than I'd like.

@mislav
Owner

What do you want to opt out of, specifically?

@rthbound
@mislav
Owner

You can create your own LinkRenderer:

class NoDefaultParamsRenderer < WillPaginate::ActionView::LinkRenderer
  def merge_get_params(url_params)
    url_params
  end
end

But since this behavior is essential, I won't provide an option to disable it simply because I think the majority would never use the option.

@mislav mislav closed this
@rthbound
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.