RJS templates are nifty. They let you put all sorts of fun effects all
over your bland html pages without too much work.
The link_to_remote function also lets you run scripts before, during,
and after an AJAX call is run by using callbacks.
There does not seem to be an equivalent method for running an RJS
template before or during an action. Rendering it at the end is no
One could write a helper function to do all the lifting and use the
:before, and :loaded callbacks in the standard way and then let the RJS
template handle the rest, but this seems like a poor solution.
Anyone have any bright ideas about how to render one RJS template at the
beginning of a call and one at the end? (and no, I don’t think
before_filters will work).