turbolinks在页面跳转时候只加载<body></body>
中的代码,不加载<head></head>
$(document).ready(function(){
xxxxxx
)}
如果有问题,需要加载<head></head>
可以改成
$(document).on("turbolinks:load", function(){
xxxxxx
)}
或者在<head></head>
里加
<meta name="turbolinks-cache-control" content="no-cache">
再或者在gemfile里直接移除turbolinks