Turbolinks javascript not loading

I'm trying to create a ruby on rails project, and as part of this project I'm using this jQuery plugin to manage tags input. However the tag field works on first refresh but not after any page loads, I'm pretty sure this is a problem with turbolinks not running the js again.

So I installed this gem, and changed:

$(function() {
$("input[data-role=tagsinput], select[multiple][data-role=tagsinput]").tagsinput();
});
})();


to:

$(document).ready(function() {
$("input[data-role=tagsinput], select[multiple][data-role=tagsinput]").tagsinput();
});
})();


in bootstrap-.

However this is still giving me the same issues. Any help fixing this would be great.

Connections form the foundation of the client-server relationship. For every WebSocket accepted by the server, a connection object is instantiated. This object becomes the parent of all the channel subscriptions that are created from there on. The connection itself does not deal with any specific application logic beyond authentication and authorization. The client of a WebSocket connection is called the connection consumer . An individual user will create one consumer-connection pair per browser tab, window, or device they have open.

But in new versions of rails the header of the application's layout view has this script linked: data-turbolinks-track . When you click links with this page value set to true, the currently loaded page get's filled with new content instead of a new page loading. this saves time in requesting pages and their default assets. but re-appending content does not trigger '$(document).ready ->'. It will however restart every javascript and read all the lines and functions again. That's why we are going to change some values at the top and add some to the bottom.

Turbolinks javascript not loading

turbolinks javascript not loading

Media:

turbolinks javascript not loadingturbolinks javascript not loadingturbolinks javascript not loadingturbolinks javascript not loadingturbolinks javascript not loading

http://buy-steroids.org