title: Rails 4: disable Turbolinks in a specific page
body: <p>I'm trying to make a JS snippet work in a concrete page with Rails 4 and Turbolinks. I've tried with the standard solution:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
      var ready = function() {
          // Bla bla
      };
  
      $(document).ready(ready);
      $(document).on('page:load', ready);
  &lt;/script&gt;
  </code></pre>
  
  <p>But it doesn't seem to work. My snippet is something like this:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    function ismready() 
    {
      var API_KEY = "api key";
      var roomId  = "room id";
      var ism = new Ismuser(API_KEY, roomId);
      ism.init({
        board: {
          layer: "board"
        },
        video: {
          camsContainer: "guest"
        },
        chat: {
          layer: "chat"
        },
        moderator: true,
      });
    }
  &lt;/script&gt;
  &lt;script src="http://assets.ismuser.com/v0.4/js/ismuser.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The snippet doesn't work as expected (even with the standard solution) and finally I just want to disable Turbolinks in this page.</p>
  
  <p>How can i do it?</p>
  
  <p>-- Solution</p>
  
  <pre><code>&lt;% content_for :body do %&gt;
      &lt;% if controller.controller_name == 'home' &amp;&amp; controller.action_name == 'demo1' %&gt;
          &lt;body data-no-turbolink="true"&gt;
      &lt;% end %&gt;
  &lt;% end %&gt;
  </code></pre>