How to disable Turbolinks in a specific page?

前端 未结 6 1651
醉酒成梦
醉酒成梦 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:25

    this is going sound really simple

    <%- if params[:controller] == 'controller_name' and params[:action] == 'index' %>
      
    <%- else %>
      
    <%- end %>
    

    I hope this help.

提交回复
热议问题