Could not find turbolinks file in Rails 4.0.4 application

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 %> 
+7
ruby-on-rails ruby-on-rails-3 ruby-on-rails-4 turbolinks
source share
1 answer

Have you added stone turbolinks to your gemfile?

 gem 'turbolinks' 
+23
source share

All Articles