Userflow.js installation in Ruby on Rails with Turbolinks
Userflow.js supports Ruby on Rails with Turbolinks.
You simply follow the standard installation instructions, but also include this line of code:
$(document).on('turbolinks:load', () => userflow.remount())
This is because Turbolinks will remove all DOM elements in the
<body> element (including Userflow’s content) when the user navigates. The
userflow.remount() call makes Userflow add it back.