I just upgraded from Rails 3.2.17 to 4.0.4 and everything looks great. I copied a lot of configuration files from the brand new test application 4.0.4 that I created. However, when I add the following line to my app/assets/javascripts/application.js file, I get an error message:
//= require turbolinks
Mistake:
couldn't find file 'turbolinks' (in /Users/scott/Code/ucode/app/assets/javascripts/application.js:15)
I want turbolinks. I am on Rails 4.0.4. My test application did not have this error. Why am I getting this error and how to fix it? I also updated the app/views/layouts/application.html.erb file to include:
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
at.
source share