I have two controllers, UsersController
and TransactionsController
and I'm wondering what the best practices is for displaying data from both controllers on one view. Should I create partials under each corresponding views directory and then stitch them together in a separate view or do I create one view under layouts? Am I way off?
EDIT:
In my Views folder:
devise
(devise default views are in here)
layouts
_header.html.erb
application.html.erbtransactions
_form.html.erb
index.html.erb
delete.html.erb
edit.html.erb
new.html.erbusers
index.html.erb
I want to show both all users in one table and their transactions in another on the root page.