Questions tagged [turbolinks-5]
59 questions
13
votes
1 answer
JQuery plugin initialization on browser back button for Turbolinks Rails 5
Whats a better solution for initializing jquery plugins on browser back button that aren't just transforming elements when using turbolinks in Rails 5 like masterslider (photo gallery) or slick (carousel), than reloading the page as I do…

Sava
- 820
- 6
- 11
10
votes
2 answers
Rails Turbolinks 5 causing causing ui flicker?
My rails app is flickering during transition.Turbolinks seems to be the culprit. Does anyone know how to stop the flickering or why it's flickering at all?
If you access the link below and click on any of the login buttons you'll replicate what I'm…

Paul Brunache
- 605
- 11
- 21
9
votes
1 answer
Rails turbolinks 5 flash messages
I am trying to find a way to deal with rails (v4.1) flash messages when using turbolinks 5.
I tried adding data-temporary="true" to each flash message div and then something like:
$(document).on('turbolinks:before-cache', function () {
…

user1116573
- 2,817
- 4
- 17
- 27
6
votes
1 answer
Using the turbolinks:load event only once for a particular page?
I've got some code that I want to run only on one page of my app, so in my HTML I'm using the following inline JS:
However,…

Greg Blass
- 3,523
- 29
- 42
4
votes
1 answer
Rails with turbolinks Javascript loads correctly only on a page refresh
After mastering Michael Hartls Rails Tutorial I am now trying to write my first own ROR 5 Apllication. Right now, I am trying to implement a JavaScript on a page inside my app. The Javascript is displaying the time inside the html and displaying a…

Sebastian Peter
- 165
- 2
- 15
4
votes
2 answers
Rails Action Cable and Turbolinks: avoid multiple bindings
I have a code in my application.html.haml that decides whether to subscribe the user to a given channel or not, depending on some user attribute.
The thing is that, given I have this piece of code in the body, when I click a link to be redirected to…

ascherman
- 1,762
- 2
- 20
- 41
3
votes
4 answers
Bootstrap Native does not work with Turbo Links
I am trying to get Bootstrap Native to work with Turbolinks 5 in a Rails 5 app. When I first load the page, the Bootstrap drop down menu works fine, but after navigating to another page, the Bootstrap drop down no longer works. It is as if…

Tom Aranda
- 5,919
- 11
- 35
- 51
3
votes
1 answer
How do I render a reply into turbolinks 5 with rails 5
I have a controller action where I'd like to receive form data, execute some business logic, then refresh the form. This works Ok if I save the object in the database then use a redirect_to. I would prefer the controller edit the object in memory…

Jacob Vanus
- 534
- 4
- 13
2
votes
1 answer