I would like to display data that combines information from multiple queries. For example:
@projects = @company.projects
@assignments = @company.assignments
@tasks = @company.tasks
How can I take these three queries and display a big table that shows projects, assignments, and tasks, all sorted together by created_at? The desired result will look like this:
7/11 Task created by company Xc for project Xp.
7/10 Project Xp created by User U.
7/09 Task created by company Yc for project Yp.
7/09 Assignment created by company Yc for project Yp.
7/08 Project Yp created by user U.