Problem with Turbolink in ruby on rails

0

My problem is as follows, I am setting up an administration panel and in my navigation I have the classic buttons to minimize the navigation bar and the dropdown for each action that has an subaction and everything works in a startup but I move by others modules let's say I'm going to store when registering a new product I'm going to js does not work the buttons or the dropdown something happened to me? Should I celebrate something? thanks in advance.

Every time I move from modules it is as if all the JS were gone but when updating the page the JS come back I have also noticed that this happens when I go to an empty link those that they have in the hfref="#"

    
asked by Jorge Luis 20.11.2017 в 01:05
source

1 answer

0

If you are using jQuery , make sure you have the following code:

$(document).on('turbolinks:load', function() {
  // código
});
    
answered by 21.11.2017 в 16:09