I\'m having some trouble loading my javascript when I use a link_to helper in rails. When I either manually enter the url with \'localhost:3000/products/new\' or reload the
FWIW, from the Turbolinks docs, the more appropriate event to capture instead of the $(document).ready is page:change.
page:load has a caveat that it doesn't fire on cache reloads...
A new body element has been loaded into the DOM. Does not fire on partial replacement or when a page is restored from cache, so as not to fire twice on the same body.
And since Turbolinks is just switching the view, page:change is more appropriate.