Monday, May 22, 2017

Removing Turbolinks from Rails 4

Turbolinks created problem with Stripe payment processing javascript and also with ouibounce javascript. I finally decided to remove it from my Rails 4 project. To remove Turbolinks with your Rails 4 application:
  1. Remove the gem 'turbolinks' line from your Gemfile.
  2. Remove the //= require turbolinks from your app/assets/javascripts/application.js.
  3. Remove the two "data-turbolinks-track" => true hash key/value pairs from your app/views/layouts/application.html.erb