Skip to content Skip to sidebar Skip to footer

Rails Bootstrap 4 With Turbolinks

I have a fully functional rails app with the bootstrap-rubygem (v4.3) installed. In my app I have a partial that gets re-rendered when a remote: true link is clicked. When this lin

Solution 1:

You have to reinitialize tooltip

$('[data-toggle="tooltip"]').tooltip()

after rerender partial, you can add it after render in your js.erb file

to solve peoblem with dropdown you have to initialize them on turbolinks:load like the tooltip is

Post a Comment for "Rails Bootstrap 4 With Turbolinks"