links in ruby rails

0

because when I browse the links on my page, do not you upload everything completely?

example :

I have a dropdown in my navbar, if I enter "/" if I can open them but if I click on a link when I load the page it can not be, in console I do not receive an error, I have to press "F5".

another example:

I have a sidebar with a background if I browse the links, the background disappears, also does not send me an error, but I have to press F5 to go back out.

In this image I directly go to link

In this other click on the account link and the background disappears, I have to press F5

and that's for everything, I have the editor tinymce and also if I write the url directly it loads me, if I enter a link on the page it does not load and send this error:

    
asked by Carlos Uriel Patiño Santiago 24.08.2016 в 20:48
source

1 answer

3
  

I add this as an answer because I still do not have enough points to comment on.

I think it can be related to Turbolinks (JavaScript).

If you are using Turbolinks, to work 'correctly' JavaScript, you can have:

$(document).on('page:change', function() {
   // JavaScript aquí
})

Instead of:

$( document ).ready(function() {
  console.log( "ready!" );
});
    
answered by 26.08.2016 / 05:07
source