Answer the question
In order to leave comments, you need to log in
Why doesn't javascript get turned on in Rails when rendering, but turns on after page reload?
Even the simplest:
$(document).ready(function(){
alert()
});
--- does not work after rendering to another page, but works after page refresh. Answer the question
In order to leave comments, you need to log in
with turbolinks I use
$(document).bind('page:change', function () {
....
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question