I’m using before_filters in my application controller to generate
sidebars in the layout, but obviously don’t want these to be run when
the request respond_to js, xml, rss – anything in fact expect vanilla
text/html. I’m sure this is blindingly obvious, but what’s the best way
to run these filters only when necessary?