I ran into an issue in my Rails 4 app while trying to organize JS files \"the rails way\". They were previously scattered across different views. I organized them into separ
You have to use:
document.addEventListener("turbolinks:load", function() { // your code here })
from turbolinks doc.