Use the power of Rails templates. If you rename the file it answers like show.js.coffee.erb (or show.coffee.erb - it doesnβt remember), then what rails the engine template generates .erb code for you, after which it will translate JS coffee, and only after that your client will receive the response text.
It works great with .erb. With .haml, I have some problems ...
source share