I just upgraded from Rails 3.2.17 to 4.0.4 and everything looks great. I copied over a lot of the config files from a brand new test 4.0.4 app I created. However, when I add in the following line to my app/assets/javascripts/application.js
file, I get an error:
//= require turbolinks
The error is:
couldn't find file 'turbolinks'
(in /Users/scott/Code/ucode/app/assets/javascripts/application.js:15)
I want turbolinks. I'm on Rails 4.0.4. My test app didn't have this error. Why am I getting this error and how do I fix it? I also updated my app/views/layouts/application.html.erb
file to include:
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
Have you added the turbolinks
gem to your Gemfile?
gem 'turbolinks'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With