Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

will_paginate raises exception for particular values

#55

will_paginate raises exceptions when min is negative. The line which raises the exception is

visible   = [current, beginning, tail].map(&:to_a).sum

Changing to

visible   = [current, beginning, tail].map(&:to_a).flatten

fixes the problem.

Reported by Andrej · July 4th, 2007 @ 02:44 AM

State: resolved
Milestone: none
Assigned to: Mislav Mislav

Activity

  1. Chris Wanstrath
    Chris Wanstrath
    • State changed from new to open
    • Assigned user changed from Chris Wanstrath to Mislav

    July 4th, 2007 @ 02:44 AM

  2. Chris Wanstrath
    Chris Wanstrath
    • State changed from open to resolved

    (from [282]) Will Paginate: tweak the page redering internals to be more solid in edge cases. [Andrej] [#55 state:resolved]

    http://require.errtheblog.com/pl...

    July 4th, 2007 @ 02:44 AM

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.