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
instylesheet_link_tag
andjavascript_include_tag
- In your app/assets/javascripts/application.js: Remove
//= require turbolinks
That's it. Prost! :)
Written by Robbie Marcelo
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#