Questions tagged [turbo-rails]
67 questions
1
vote
2 answers
Rails turbo visit without change history state
I want to trigger a get request cycle without change in browser history. I have tried
Turbo.visit(url, { action: "advance" });
Turbo.visit(url, { action: "replace" });
But both change history.

Petros Kalafatidis
- 575
- 5
- 15
1
vote
1 answer
Turbo-rails distinct scoped partial broadcast update
I want to broadcast updates of ActiveRecord to distinct partials depending on their scoped route. How could I do that?
Ex: I have a Post model that has_many :comments. Comments can be updated and we have two partials for a comment in the following…

user3805610
- 252
- 2
- 13
1
vote
2 answers
rails turbo_stream is not working on a rails 7 application
I am trying to submit a form and return a turbo_stream on a rails 7.0 application.
In my form I have the following.
<%= form_with url: "/request_trial", method: :post, format: :turbo_stream do |form| %>
<%= form.label :name,…

user17914516
- 119
- 3
- 8
1
vote
1 answer
Rails 6 with turbo-rails. popper.js is not loading on full page load
I am very new to rails and webpacker and cannot figure out what is happening, here. When I perform a 'full load' of my app from the address bar in the browser, the tooltips and popovers are not being instantiated and I get errors like…

prufrock
- 239
- 1
- 4
- 15
0
votes
1 answer
Can't pass current_user into rails 7 turbo stream
I am trying to learn turbo with rails and have come to a problem that I can't seem to figure out. I have a structure where every Applicant has Messages. Two users can send messages to each other through an Applicant. This stream works now.
However,…

Frub
- 51
- 1
- 7
0
votes
1 answer
In Rails 7, using turbo_stream to move an element from one div to another
I don't know if there's something wrong in my code, logic, or some limitation with turbo.
I have 4 columns of divs with id="period_x" where x is the period number.
Under each are scheduled courses defined by
…

Sana
- 79
- 1
- 13
0
votes
0 answers
How to use turbo stream to replace just a single line html on form submission without using partial
I am new to Rails 7 with not much experience with turbo-stream, stimulus:
I have elements listed in where last column has a form that just contains a checkbox.
I want to submit the form on checkbox change, push an alert after submission.…