I have a sidebar that will have some logic in it, just as the view speaks to the controller. Where to put the logic for partial? Create a new controller for the layout and place it there?
Layout for registered users, for example, a toolbar. The dashboard will have a sidebar with the same dynamic content on each page. Since it is displayed on every page, I want to express it partially.
I'm just confused about where to put the find and all this information.
ruby-on-rails layout partial-views
Ryan
source share