If Turbolinks is an issue, it can be removed entirely from the project by following the instructions provided e.g. here:
- remove
gem 'turbolinks'
from the Gemfile and runbundle update
- remove
//= require turbolinks
from app/assets/javascripts/application.js - remove
"data-turbolinks-track" => true
from thestylesheet
andjavascript
tags in the header of application.html.erb layout file.
Quoting Rails 4 In Action:
...it's our opinion that Turoblinks is great to speed up mostly-server-side sites, but as soon as you start writing some JavaScript, it causes more problems than it's worth.