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.

Got questions? We're here for you!

The best way to get help is to
We usually reply within 5 minutes
You can also send an email to support@userflow.com
We usually reply within a few hours