I want to have some RJS executed whenever an xhr request is made. My
initial thought was an "application.rjs" might do this, however that
does not seem to be the case.
Is there a way to set up some RJS that is executed whenever RJS is
fired? I have code that I don't want to repeat all over the place?
Failing the above. I thought adding a helper function the application.rb
and calling that from each .rjs file. However this does not work either.
Is there a way to call a method defined in applicaiton.rb from any .rjs