will_paginate
will_paginate copied to clipboard
Pagination library for Rails and other Ruby applications
in our logs we found this problem `ArgumentError: invalid value for Integer(): 'xoforvfmy' in "[GEM_ROOT]/gems/will_paginate-3.0.2/lib/will_paginate/page_number.rb" on line 16.` Some web crawler requested `page=xoforvfmy` I tried to find best place to...
I am getting this error Error: **ActionController::UnfilteredParameters - unable to convert unpermitted parameters to hash** Issue On my this line **** When I try to debug the will_paginate method inside...
The `paginate` method seems to ignore `:order` option which is provided via `set_default_order` method in `Hobo::Model`.
The `LinkRenderer` for `ActionView` merges existing GET params into the parameters for a link using the protected method `merge_get_params` which checks if the request is a GET requests and then...
Without any translation files, when calling will_paginate, the 'page_gap' label trigger a 'translation missing' label. The code in https://github.com/mislav/will_paginate/blob/master/lib/will_paginate/i18n.rb#L11 which, in my opinion, should be called by https://github.com/mislav/will_paginate/blob/master/lib/will_paginate/view_helpers/link_renderer.rb#L52 is not....
Gemfile ``` gem 'rails', '~> 5.1.4' gem 'mongoid', '~> 6.2.0' gem 'will_paginate', '~> 3.1.0' ``` Bot.paginate(page: 1, per_page: 25) // doesn't work Bot.all.paginate(page: 1, per_page: 25) //doesn't work Error ```...
I have a bootstrap panel on my view, and I generate a pagination for each panels. It works perfectly for the first panel. However, when I am on the second...
I have an issue with nested resource. Here is example: ``` p = Products.first p.steps.count ---> 10 a = p.steps.paginate(page: 1, per_page: 2) a.count ---> 10 ``` but, ``` a...
next_page, previous_page and total_pages all cause an Infinity error when to be thrown when the per_page variable is set to 0. ``` FloatDomainError: Infinity # ./lib/will_paginate/collection.rb:16:in `ceil' # ./lib/will_paginate/collection.rb:16:in `total_pages'...
`will_paginate-3.1.6` renders "Will Paginate" in the absence of `page_gap:` translation. Actual result: as on the attached screenshot picture ("Will Paginate" string rendered) Expected result: in the absence of translated string...