I am looking to do pagination with cancan, however it is not obvious how to integrate this with gems such as will_paginate.
Ideally, cancan load_resource will delegate will_paginate and add additional conditions. For example, in cancan I declared guest users
can :read, Post, :published => true
and this is automatically handled by load_resource. However, I would like the will_paginate page to go through all these results.
Any ideas.
Hi
Brad
source share