turbo Questions
4
Solved
I've gone through a good chunk of this tutorial, and have gotten to the part where functionality for deleting articles is added:
https://guides.rubyonrails.org/getting_started.html
...but whenever ...
Upset asked 10/2, 2022 at 5:9
3
The turbo:load event is not fired after a turbo visit (as the documentation says it should). It works as expected after the initial full-page load. I can catch the "turbo:before-fetch-response...
Peursem asked 9/2, 2022 at 0:26
1
I have a turbo monorepo, with packages/... and apps/app-a, apps/app-b .
I have set up husky pre-commit hook, which will run pnpm dlx lint-staged
I want lint-staged to run lint script from the close...
Klee asked 20/8, 2023 at 4:56
2
I'm getting started with Hotwire and Turbo in Rails 6 and have an issue with Turbo not replacing my turbo-frame. I'm receiving the following error message: Response has no matching <turbo-frame ...
Declaratory asked 25/10, 2021 at 17:50
5
For a long time, Rails has provided a method: :post option in the link_to helper: when the option was given, Rails would intercept the click and issue a POST request, instead of the default GET req...
Ass asked 27/12, 2021 at 17:3
1
Solved
Using rails (7.1.3.2) and turbo-rails (2.0.4). For some reason, when ever I hover over any link in my app, a GET request is happening to the linked page. I check my inspector and there is a mouseen...
Feaster asked 22/2 at 17:28
1
Solved
I'm upgrading an application from rails 6 to 7 and replacing ujs with turbostreams.
The current ujs
$('#sightings_by_type').html("<%= escape_javascript (render partial: '/member/spotting_se...
Sphenogram asked 17/1 at 14:23
1
Solved
I have a page with several modal forms for filling out academic data. For each modal, the relevant Rails controller actions render turbo responses for the form in a separate modal.
Note: this does...
Klipspringer asked 22/11, 2023 at 23:29
1
Solved
(Original question: Does Turbo.setFormMode("optin") disable turbo requests in links? No, the link doesn't work even with Turbo.setFormMode("on"))
Mature app using Rails 6.1, rec...
Leprechaun asked 6/11, 2023 at 8:36
10
I have the following code:
<%= turbo_frame_tag :my_frame do %>
frame
<% end %>
<%= link_to "About", about_path, data: { turbo_frame: :my_frame } %>
When I click the &...
Weasand asked 30/4, 2022 at 18:21
3
I'm starting to use Hotwire in my Rails app and I implemented something similar to the tutorial video where a form gets submitted and refresh another part of the page. Like in the video, I had to i...
Dieball asked 21/3, 2021 at 15:14
5
Solved
How can I disable Hotwire / Turbo (the Turbolinks replacement) for all forms in a Rails application?
In Rails 7, Turbolinks is replaced by Hotwire / Turbo. This patches up web links so that they become AJAX-style requests just like Turbolinks did, but also patches up forms. On the whole, we found ...
Corinacorine asked 31/1, 2022 at 4:33
1
Solved
I have a simple list of items. Each item has attributes which are often changing (e.g. every second).
I use turbo_stream_from "list_items" in order to keep the data fresh.
I wanted to add...
Distracted asked 25/4, 2023 at 20:16
5
Solved
Previously in Rails when using the button_to tag, it was possible to use a confirmation dialog like this
<%= button_to 'Destroy', @post, method: :delete, data: { confirm: 'Are you sure?' } %>...
Divot asked 5/2, 2022 at 0:26
1
Solved
I have a delete link in Rails 7 that functions correctly using either turbo_stream or html, but not each of those.
link_to 'delete', @object, data: { turbo_method: 'delete', turbo_confirm: 'Really?...
Direction asked 6/3, 2023 at 21:44
1
Solved
The following _receipt_number partial (HTML formatting tags removed for brevity's sake)
<%= turbo_frame_tag :receipt_number do %>
<%= t('scan') %> <%= t('cart.receipt_number') %>...
Wineshop asked 27/2, 2023 at 7:53
1
Solved
Many articles and tutorials teach how to share components in monorepo projects.
But they show something in an unproductive way.
Share each component (package1, package2) separately in workspace. W...
Holmgren asked 18/11, 2022 at 16:49
2
Solved
This is a common question on the web but I didn't found any solution for my problem...
I have the same warning message in console on all my rails apps when I click on a link to an other page
Just n...
Rutledge asked 25/6, 2022 at 11:35
0
In a Rails 7 app, clicking an icon toggles the display property of a form. Both HTML elements connect properly to their respective controllers (toggler and togglee). The form (togglee) is an outlet...
Rigveda asked 7/1, 2023 at 0:56
1
Solved
yarn not installing packages from workspace but instead tries pulling down from npmjs with turborepo
Version:
"packageManager": "[email protected]"
I have based my project off of the npx create-turbo@latest command.
I have eslint-config-custom and tsconfig projects inside ...
Grig asked 20/7, 2022 at 20:28
2
I have a form I want to submit automatically whenever any input field is changed. I am using Turbo Streams, and if I use onchange: "this.form.submit()" it isn't captured by Turbo Streams ...
Sharenshargel asked 2/8, 2021 at 16:0
1
Solved
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...
Joycelynjoye asked 3/8, 2021 at 18:51
1
Solved
I am using Turbo Frames in my Rails app and have, on every page
<turbo-frame id="messagesFrame" src="/chats">
</turbo-frame>
This loads in fine, and when a link is ...
Chandelier asked 29/4, 2021 at 10:5
1
© 2022 - 2024 — McMap. All rights reserved.