Closed shcyiza closed 8 years ago
This was a turbolinks problem. Thanks to @zwippie for leading me in the right direction! The solution was to wrap my coffeescript in this:
ready = ->
// functions
$(document).ready(ready)
$(document).on('page:load', ready)
http://stackoverflow.com/questions/17317816/rails-javascript-only-works-after-reload
script a l'interieur de body?? expemple `
`
https://forum.jquery.com/topic/script-not-running-unless-i-refresh-page