I'm looking to do pagination with cancan however it's not obvious how to integrate this with gems such as will_paginate.
Ideally cancan's load_resource will delegate to will_paginate and add extra conditions. For example in cancan I've declared guest users
can :read, Post, :published => true
and this is handled automatically by load_resource. However I'd then like to have will_paginate page through all these results.
Any ideas.
Regards
Brad