I am using a presenter template for toolbars. Toolbars are a hybrid of objects, and it's hard to think of it as a show or index page. I will create a virtual object to process requests and aggregate related objects. It really clears the controller code, even if you decide to go with the DashboardsController.
But I would recommend adding to the resources. A route museum.
collection do get :dashboard end
And then under UserController add an action bar
def dashboard @presenter = UserDashboardPresenter.new(user) end
Use @presenter in the view.
You will find more in the presenter template if you search for it. This is great for caching, code reuse, testing, and performance improvement.
source share