RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: piotrkaczmarek
I have recently run into this issue and managed to solve it:
It turned out to be turbolinks issue preventing from loading any js on the first page load: http://stackoverflow.com/questions/17881384/jquery-gets-loaded-only-on-page-refresh-in-rails-4-application
Simple commenting out
//= require turbolinks
helped me but you can try replacing it with 'jquery-turbolinks' gem as an answer on stackoverflow link suggests.
I have recently run into this issue and managed to solve it:
It turned out to be turbolinks issue preventing from loading any js on the first page load:
http://stackoverflow.com/questions/17881384/jquery-gets-loaded-only-on-page-refresh-in-rails-4-application
Simple commenting out
//= require turbolinks
helped me but you can try replacing it with 'jquery-turbolinks' gem as an answer on stackoverflow link suggests.