I’d like to abstract the process of updating different portions of the
page after an Ajax request has taken place. Rather than simply putting
the extra view logic in the standard rjs template, it seems to give
better separation if there is a split between the core view logic (ie,
inserting a row in a table), and updating any associated portions of
Is this possible? I can’t see a way of doing it at the moment because
render can only be called once. I could just fiddle with the RJS stuff
in ActionView but would like to check there isn’t a better way.
Maybe an after_filter, but I’m doubtful about that.