Tag: turbolinks

  • CoffeeScript event handlers only working after page refresh

    I was able to find a resolution on StackOverflow to fix an event handler. I initially opted to added $(document).ready(…) and $(document).on(‘page:load’, …) handlers as follows: ready = -> $(‘form’).on ‘click’, ‘.clickable_class’, (event) -> # doStuff # added lines: $(document).ready(ready) $(document).on(‘page:load’, ready) However, another answer recommended adding the jquery-turbolinks instead. Browsing the source code, it […]