#28 ✓resolved
crazygecko (at gmail)

Paginate page_count is incorrect

Reported by crazygecko (at gmail) | June 14th, 2007 @ 07:30 AM

I have just tried will_paginate with my Rails app. Everything works fine except the number of page links at the bottom.

I managed to track this done to a faulty page_count inside collections. Couldn't figure out why it is wrong.



@town = params[:town]

@groups = Group.paginate_by_city @town, :page => params[:page]


The above gets all listings for a town.



= will_paginate @groups


In model:


cattr_reader :per_page

@@per_page = 6


I'll do my best to find the bug, if I do, it will be the first time!

Any ideas?

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 ยป

Shared Ticket Bins

People watching this ticket