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.

repeat conditions in paginate association

#109

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.

Reported by RainChen · September 10th, 2007 @ 09:11 AM

State: resolved
Milestone: none
Assigned to: Mislav Mislav

Activity

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

    September 10th, 2007 @ 08:40 PM

  2. Mislav
    Mislav
    • 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.

    September 27th, 2007 @ 01:30 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.