> I ran into similar problems; I've fixed some #count-related stuff in
> my fork:
> http://github.com/benhoskings/ambition
> Cheers
> Ben
> On 31/07/2009, at 7:45 AM, csmosx wrote:
>> Hi,
>> I'm using:
>> ambition-0.5.4
>> ambitious-activerecord-0.1.3
>> mislav-will_paginate-2.3.11
>> Will_paginate won't print pagination links on my pages, when using
>> Ambition.
>> It thinks my collections have a total_entries size of zero.
>> I am new to Ambition, any help would be appreciated...
>> Using ambition I get this:
>>>> guh = Broker.paginate(:page => nil, :per_page => 5)
>> => [<the result>]
>>>> guh.total_entries
>> => 0
>> Without ambition (standard AR):
>>>> guh = Broker.paginate(:page => nil, :per_page => 5)
>> => [<the result>]
>>>> guh.total_entries
>> => 20
>> I figure this must have something to do with the count method...
>> With ambition, I get:
>>>> Broker.count
>> => 0
>>>> Broker.all.count
>> => 20
>> Without ambition (standard AR):
>>>> Broker.count
>> => 20
>> Thanks!