I’m wondering if it’s possible to merge/combine find results from
multiple tables. I have a customers model and customers have invoices
and payments. I need to combine the results from the invoice and
payment tables to create a customer ledger, which looks like:
When iterating through @entries in the view, you’ll can just use
‘entry.type’ for the second column, if that’s literally all you need.
It might be nicer, though, to have a different partial for each type,
and render each accordingly: