Last Updated: February 25, 2016
·
6.333K
· rbmrclo

Rails 4: Remove Turbolinks in your Rails app

Because some developers don't want to use Turbolinks from the Rails 4 default, here's how you do it.

  • In your Gemfile: Remove the line gem 'turbolinks'
  • In your app/views/layouts/application.html.erb: Remove "data-turbolinks-track" => true in stylesheet_link_tag and javascript_include_tag
  • In your app/assets/javascripts/application.js: Remove //= require turbolinks

That's it. Prost! :)