RailsCasts Pro episodes are now free!

Learn more or hide this

Piotr Kaczmarek's Profile

GitHub User: piotrkaczmarek

Comments by Piotr Kaczmarek

Avatar

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

application.js
//= require turbolinks

helped me but you can try replacing it with 'jquery-turbolinks' gem as an answer on stackoverflow link suggests.