Pagination How to

hi guys i want to know how to do pagination in rails.
I know how to do it with will paginate but my problem is something
like this
Lets say I have find from model something after that i will
manipulate it using loop or so. And i use that manipulated value in my
view file. Please guys help me.

To be particular i am using acts_as_messageable to have facebook like
messaging system.