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] removing :include can break pagination

#64

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

Reported by Grant Goodale · July 15th, 2007 @ 07:42 PM

State: resolved
Milestone: none
Assigned to: Mislav Mislav

Activity

  1. Grant Goodale
    Grant Goodale

    For example:

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

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

    July 15th, 2007 @ 07:42 PM

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

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

    July 15th, 2007 @ 07:42 PM

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.