I’ve asked this before, but I wasn’t sure what I was looking for and
what the problem was back then.
What I want is to be able to tell Rails that after -every- AJAX-
request, some default RJS gets executed. I’ve tried using an
after_filter rendering an rjs-file, but because all of my methods
already use RJS, Rails produces an error similar to when you use two
redirects in one request. I can, of course, add some code to every
file, but that wouldn’t be very DRY.
How can I tell Rails, just like you do with your application layout
for example, to do some general stuff in addition to the specific code
in my .rjs files?