#109 ✓resolved

repeat conditions in paginate association

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

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

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