csmosx
unread,Jul 30, 2009, 5:45:48 PM7/30/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ambition.rb
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!