Let's say that I have a widget that displays summary information about the number of posts or comments that I have on the site.
What is the cleanest way to store this information through controllers?
Including instance variables in an application controller seems like a bad idea. The presence of a filter before downloading data for each controller smells like duplication of code.
Should I use a plugin like Cells plugin ( http://cells.rubyforge.org/ ), or is there an easier way to do this?
Carlos
source
share