#168 ✓resolved

maybe_will_paginate breaks on an empty result

Reported by spencer | February 23rd, 2011 @ 03:43 PM


On the line above, if there are 0 results, maybe_will_paginate gets called with an empty collection. WillPaginate::Collection.create(1, 0, 0) is the result. WillPaginate doesn't like 0 results per page and raises an error.

Slightly inconvenient since the db can be seeded with at least one result, or not index that collection.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Awesome Solr interaction for Ruby

People watching this ticket