#64 ✓resolved
Grant Goodale

[will_paginate] removing :include can break pagination

Reported by Grant Goodale | 2007-07-15 19:42:43 UTC

Changeset 295 removed the :include clause from the count() query. But what if I used the :included table in my :conditions?

Comments and changes to this ticket

  • Grant Goodale

    Grant Goodale 2007-07-15 19:42:43 UTC

    For example:

    Topic.paginate :include => :author, :conditions => ["authors.status = ?", 'active'], :page => 1

    Or is there a better way to accomplish this sort of thing?

  • Chris Wanstrath

    Chris Wanstrath 2007-07-15 19:42:43 UTC

    • State changed from “new” to “resolved”

    This was my mistake, Mislav fixed in [297].

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 ยป

Everyone's favorite Ruby library for pagination of practically anything!

People watching this ticket

Pages