Topic: Dynamic content for layouts
I need to display some things on pretty much every page (like a list of RSS feeds in the right side-bar). Some of this content is dynamic and needs to be recomputed with each page render. I have moved the view components into the layout, but I am curious about what to do with the controller code that refreshes the data.
Here are some ideas I've had (using RSS display):
1. Create a helper function (refresh_rss) and call it in a :before_filter
2. Create the refresh_rss and call it manually from the actions where it is necessary
3. Call the refresh_rss from the layout view
I'm just wondering what other people are doing for this sort of thing. I'm sure this is a very common problem of displaying multiple unrelated data streams on a single page.