Questions tagged [turbo]
201 questions
2
votes
1 answer
Turbo Native Android Authentication
I'm basically trying to pass the token stored in Preferences to the turbo fragment. I figured that being stored, it would be usable in the fragments.
Are there any tutorials on how this is done? I'm not that well versed in android.
For ios => this…

Chrismisballs
- 167
- 12
2
votes
0 answers
Get event target after frame loads - Turbo Rails
I have some turbo frame forms in my page that should fire some javascript after they are loaded into the document. Therefore I'm using the turbo:frame-load event listener. To access the element I'd like to use the event's target, as…

derschiw
- 120
- 5
2
votes
0 answers
How can I load tailwind classes that are sent via actioncable broadcast in a rails app?
I'm running a rails app that is heavily using hotwire in some pages. All the CSS in the app is "written" using tailwindcss classes.
In some pages there are a lot of turbo broadcasts being sent by the server based on user interaction. One of the…

ilrock
- 573
- 8
- 24
2
votes
1 answer
Rails turbo stream
I am confused why i dont get 2 entries when i create a new quote with the following code.
My thought is that i would get an entry from the following:
the create method that returns the turbo_stream and renders the create.turbo_stream
the…

Nicholas Ladefoged
- 186
- 1
- 12
2
votes
2 answers
Why doesn't fetch() trigger turbo frames replacement?
I have a turbo frame as follows:
Select a movie for more details...
This frame is properly replaced when the a tag in the following is clicked, because the route /movie/show/1 returns a turbo frame with…

Jeffrey Maxwell
- 304
- 3
- 7
2
votes
1 answer
Best practices for handling HTTP 404 responses in Rails using Turbo Frames?
I'm thinking through how Turbo Streams work, mostly as a thought experiment. I understand the basics after building a simple toy application. It's pretty powerful that so much can be done with a handful of Turbo Frames.
It's interesting to be able…

Benjamin Oakes
- 12,262
- 12
- 65
- 83
2
votes
2 answers
Rails turbo_frame not being recognized
context testing rails-ujs functionality with Rails 7 turbo streams as a full replacement.
Class nesting is structured as follows:
class Cartitem < ApplicationRecord
belongs_to :article
belongs_to :cart
validates :quantity_ordered,…

Jerome
- 5,583
- 3
- 33
- 76
2
votes
1 answer
how to solve error in Turbo pascal: line too long
i have this line code
GAMBAR;
SETBKCOLOR(15);
BINTANG(17,0,23,12,23,12,36,12,0,12,13,12,36,12,26,21,26,21,29,34,29,34,18,27,18,27,7,34,7,34,10,21,10,21,0,12,0,12,13,12,13,12,17,0,2);
READLN;
FOR I:= 1 TO 20 DO
BEGIN
…

RIZKY A
- 21
- 3
2
votes
0 answers
How to set up Rails UJS along with Turbo?
I'm confused as to exactly what I need to do to run my old jQuery snippets and Rails UJS along with Turbo.
DHH added this PR in June that was supposed to improve compatibility, but it lacks details on exactly how the setup should work.
I still have…

dwayne
- 118
- 7
2
votes
0 answers
Turbo and Datatables initialization problem
I am using rails 6 to load a datatables with values. My sidebar looks like this:
<%= link_to users_path, {class: 'nav-link', data: {turbo: true} } do %>
All Users
<% end…

Nick_K
- 541
- 6
- 22
2
votes
1 answer
How to insert a form for a new record using Turbo/Stimuls?
The future of Rails seems to be moving away from UJS and towards Turbo and Stimulus. But, some features seem to require more code and more work vs old-school UJS.
For example: To insert a form inline that would allow the creation of a new record…

hellion
- 4,602
- 6
- 38
- 77
2
votes
0 answers
Cannot submit form drawn by Rails Turbo Frame response
A form inside a turbo_frame is blocked from being submitted a second time.
Both the current page and the form action are the same path.
I see forms now have to redirect to a new location or return an error code: turbo/pull/39.
I have a form on every…

rigyt
- 2,219
- 3
- 28
- 40
2
votes
1 answer
Rails Turbo Removes Hubspot Injected HTML on page redirect
I'm using a Hubspot chat bot in a rails app that's setup with Hotwire & turbo. When the page is initially loaded a Hubspot script will inject some html into the body of the page which contains the chatbot. Once any redirect happens the body is…

projectmind
- 540
- 4
- 17
2
votes
1 answer
Rails + Hotwire: Why does my link disappear when I click it?
I'm trying to incorporate Hotwire/Turbo into an existing Rails application. I've added turbo frames to a simple edit page, but now when I click my back button, it disappears instead of taking me to target page. The link is a simple link_to "Back",…

aidan
- 1,627
- 17
- 27
1
vote
1 answer
Can I use Turbo in rails 7 asset pipeline
I recently upgraded my site from rails 3.1 to rails 7.0.5.1. Now I have lot of legacy javascript code which I want to include via asset pipeline and avoid importmaps. But to use turbo/ turbolinks, I get a message that to use turbo, you should have…

Muhammad Ans
- 157
- 8