#109 ✓resolved
RainChen

repeat conditions in paginate association

Reported by RainChen | 2007-09-10 09:11:34 UTC

I install Exported revision 365, it seems repeat the same conditions:

paginate_options = { :page => params[:page], :per_page => 30, :order => ‘ID DESC’ } @project = Project.find(params[:id]) @project.tasks.paginate paginate_options

=> SELECT count(*) AS count_all FROM tasks WHERE (tasks.project_id = 5) AND (tasks.project_id = 5)

"tasks.project_id = 5" repeat twice.

Comments and changes to this ticket

  • Chris Wanstrath

    Chris Wanstrath 2007-09-10 20:40:14 UTC

    • Assigned user changed from “Chris Wanstrath” to “Mislav”
    • State changed from “new” to “open”
  • Mislav

    Mislav 2007-09-27 01:30:03 UTC

    • State changed from “open” to “resolved”

    Thanks. This was a glitch in AR that I've worked around. It may still happen in some rare cases, but is nothing to worry about.

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