After quite a lot of searching, I still lost a bit. There are several other similar questions that relate to pagination of several models, but they either do not answer or paganize each model separately.
I need to split all account entries at once.
class Account :has_many :emails :has_many :tasks :has_many :notes end
So, I would like to find the 30 most recent “things”, regardless of who they are. Is this possible with current pagination solutions?
How to use some combination of impatient download and Kaminari or will_paginate?
Or, should I first create a polymorphic union of all these things called Elements. Then break the pages into the last 30 elements, then browse related records of these elements.
And if so, I'm not quite sure what this code looks like. Any suggestions?
Which way is better? (or even possible)
Rails 3.1, Ruby 1.9.2, the application does not work.
source share