Pushing the boundaries of the webbernets.

Remove Turbolinks From Rails 4

If you don’t want to use Turbolinks with your Rails 4 app.

Remove turbolinks gem from your Gem file.

remove the following line

gem 'turbolinks'

After you remove that line run a bundle install to update your gem file and dependencies.

Remove turbolinks javascript includes

In your application.js file which should be located here app/assets/javascripts/application.js

remove the following line.

//= require turbolinks

Remove trubolinks key value pairs from application layout.

Inside you application layout, app/views/layouts/application.html.erb.

Find the following two lines.

 <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
 <%= javascript_include_tag "application", "data-turbolinks-track" => true %>

Remove the “data-turbolinks-track” key value pair. Once you are done your stylesheet tag and javascript tag should look like this.

  <%= stylesheet_link_tag "application", media: "all" %>
  <%= javascript_include_tag "application" %>