bylmmw
Last Updated: February 25, 2016
·
5.811K
· rbmrclo
2fe1468f365b2c131b38e87aa4acb601

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! :)

Say Thanks
Respond