[will_paginate] removing :include can break pagination
Reported by Grant Goodale | July 15th, 2007 @ 07:42 PM
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 July 15th, 2007 @ 07:42 PM
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 July 15th, 2007 @ 07:42 PM
- 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.
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!