javascript - Rails 4 : JS doesn't work when I follow links -
i use rails 4. problem have when follow links in rails app - js libraries doesnt't work(jquery.inview.js , ckeditor/init). when refresh page - works fine.
//= require jquery //= require jquery_ujs //= require ckeditor/init //= require jquery.inview.min.js //= require jquery.inview.js //= require twitter/bootstrap //= require turbolinks //= require jquery_nested_form //= require_tree .
when remove turbolinks application.js - works well
i ran similar problem myself links working on refresh in rails 4 app , 1 of solutions discussed in link worked me:
http://srbiv.github.io/2013/04/06/rails-4-my-first-run-in-with-turbolinks.html
not sure if work turbolinks used rails 4 default , worth reviewing how works can have unintended side effects if not set or used correctly.
Comments
Post a Comment