How to disable Turbolinks in a specific page?

前端 未结 6 1743
醉酒成梦
醉酒成梦 2021-02-12 13:54

I have an issue with a script only working when refreshing the page and so I\'m trying to disable Turbolinks for only that page. The code below doesn\'t work. However, if I add

6条回答
  •  后悔当初
    2021-02-12 14:36

    For turbolinks 5 if you use this method mentioned above:

        <%= link_to "Policy", policy_path, :"data-no-turbolink" => true %>
    

    You'll need to change it to:

        <%= link_to "Policy", policy_path, :"data-turbolinks" => false %>
    

提交回复
热议问题