This question comes from
Actually, I was able to find a clue and this is what I found. I have a js file:
$(document).ready(function() {
var myIdElement = $("#some_id");
//............
$.ajax({
url: getFullUrl(myIdElement.val())
})
//..........
So when I come to this page from the another page by a link (html link) then myIdElement
is undefined
. However, when I reload the page it starts having a proper value. I use turbolinks.
How do I get it to work in all situations?