Pages

Sunday, October 27, 2013

Removing Turbolinks from Rails 4

If you don't want to use Turbolinks with your Rails 4 application, it's easy! Just do this:

  1. Remove the gem 'turbolinks' line from your Gemfile.
  2. Run bundle install
  3. Remove the //= require turbolinks from your app/assets/javascripts/application.js
  4. Remove the two "data-turbolinks-track" => true hash key/value pairs from your app/views/layouts/application.html.erb

Done!

Reference: Removing Turbolinks from Rails 4