6 ms·
This is a very common pattern and one that’s been solved in Rails by building specialized controllers applying the CRUD interface to multiple models. Like the
by andrei_says_ 2y ago
This is a very common pattern and one that’s been solved in Rails by building specialized controllers applying the CRUD interface to multiple models.
Like the Read for a dashboard could have a controller for each dashboard component to load its data or it could have one controller for the full dashboard querying multiple models - still CRUD.
The tight coupling is one of many approaches and common enough to be made default.