I want to know how can I paginate a set of records. It seems
there is no direct way of doing this, and I am not able to understand
documentation of paginate, so any pointers on how to do this will be
To be specific what I want is that the records returned by user.recipes,
recipes of the particular user be paginated.
My attempt to do this failed because paginate expects a constant and not
@recipe_pages, @recipes = paginate( user.recipes, :per_page => 10)
Thanks for your help.