I have a sidebar that is going to have some logic in it, similar to how a view talks to a controller. Where do I put the logic in for the partial? Do I create a new controller for the layout and put it in there?
The layout is for logged in users, like a dashboard. The dashboard is going to have a sidebar that shows the same dynamic content on every page. Since it's being shown on every page I want to put it in a partial.
I'm just confused on where to put the find's and all that information.