Question

Ruby on Rails 7 and Turbo

  • 12 December 2023
  • 0 replies
  • 10 views

Badge

How to use Drift with Ruby on Rails 7 and Turbo?

 

I had it working on Ruby on Rails 6 and Turbolinks, after following a tutorial.

 

I had to use this:

<div id="drift-widget-container" data-turbolinks-permanent></div>
 

But now on Turbo, every time I navigate to another page, the Drift chat box is gone.

It shows on the first page, but goes away whenever I click on a link.

 

I tried changing the `turbolinks` to turbo here:

<div id="drift-widget-container" data-turbo-permanent></div>

But that did not work.

 

Any ideas on how to get this working on the latest Ruby on Rails?
 


0 replies

Be the first to reply!

Reply