Questions tagged [turbo]
201 questions
1
vote
1 answer
Turbo/Stimulus/RequestJS-Rails Refresh Page after a POST
Using Rails 7 (Turbo/Stimulus/RequestJS-Rails)
We're using Stimulus to hit a Plaid endpoint (PlaidLink) to create a connection to a Bank. After the plaid connection is created and returns to our Stimulus controller I'm calling our Rails app using…

studeba
- 41
- 3
1
vote
0 answers
fetchOptions body is null on form submit with stimulus.js : Uncaught TypeError: Cannot read properties of null (reading 'set')
I'm trying to create a dynamic search with Ruby on Rails using Turbo and Stimulus controllers. I followed a great tutorial (typeahead-search-tutorial) and was able to get this working seamlessly as an independent (simple) app.
Now I'm attempting to…

epurdy
- 151
- 1
- 12
1
vote
0 answers
Rails turbo_stream replace options_from_collection_for_select from turbo_stream.erb
I'm trying to replace the value of the dropdown though the turbo stream.
through js request we can do as
views/projects/filter_units_by_organization.js.erb
$('select#project_unit_id').html('<%= j options_from_collection_for_select(@filtered_units,…

Akash Kinwad
- 704
- 2
- 7
- 22
1
vote
1 answer
Rails 7 - CurrentAttributes - Unsupported argument type
My pseudo class Current
class Current < ActiveSupport::CurrentAttributes
attribute :user
end
My ApplicationController:
class ApplicationController < ActionController::Base
before_action :set_current_user, if: :user_signed_in?
private…

Wordica
- 2,427
- 3
- 31
- 51
1
vote
1 answer
Turbo nested forms, struggling with tutorial
I've successfully been able to implement this tutorial up to a point.
I can get the nested items to appear by saving the parent form and going back to edit, but I am unable to get my Delete or my Add Option button to actually work.
The Delete button…

Patrick Vellia
- 399
- 2
- 9
1
vote
1 answer
How to use stimulus and turbo_stream on items which are often being changed?
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 a checkbox next to each list_item in order to have ability to…

knagode
- 5,816
- 5
- 49
- 65
1
vote
0 answers
How to scroll to anchor after navigation with Hotwire Turbo Frame?
I would like to have a link inside a turbo frame that works as usual (i.e. by default, when the link is clicked then the frame targets itself to load content provided at the given link url) but with the addition to scroll the page at a given…

Backo
- 18,291
- 27
- 103
- 170
1
vote
1 answer
How to add a destroy button within a clickable row?
I'm trying to make a list row that is clickable, but have a delete button inside of it.
When I click Delete, the confirmation alert shows up correctly, but then it just redirects to the page that the row is linked to, without deleting the…

Frexuz
- 4,732
- 2
- 37
- 54
1
vote
0 answers
Vercel using old environment variables when used with turbo
Summary
This is the build process of my turbo.json
as you can clearly see I have GOOGLE_API_CREDENTIALS in env which means that vertical must build keeping the updated value of GOOGLE_API_CREDENTIALS in consideration.
while deploying the app I am…

rohit kumar
- 43
- 1
- 4
1
vote
0 answers
Turbo Frame Error "Content Missing" before Authentication
I rebuilt this Cookie Consent Tutorial with Turbo Frame and it has some weird behaviour to it that I can't understand.
On the home & sign in page (therefore pages, where the user is not logged in) "Content Missing" is rendered even though I can see…

Lisbeth Purrucker
- 27
- 7
1
vote
1 answer
Rails 7 Turbo stream / turbo frame. Render index with new item
I am having terrible problems trying to get a new item to render back to the index of a page using turbo streams.
I want it to go back to the index after the create action and append the deal to the page, I need this to be a turbo stream. So far…

Simon Knight
- 37
- 6
1
vote
1 answer
Network response with nested turboframe linking to same page doing a full html request?
I have a nested turbo frame
My controller is something like
def landing_page
@variable = params[:variable].present? ? params[:variable] : "hello"
end
The view for my landing page is:
<%= turbo_frame_tag "outer" do %>
<%= @variable…

APysnack
- 73
- 6
1
vote
0 answers
Initialize Flowbite components on Ruby on Rails turbo:frame-load event
I am using Flowbite dropdown component with flowbite.turbo.js.
The problem is that after the frame is rendered, Flowbite is not reloaded and the dropdown do not open.
How can I re-initiliaze Flowbite components after the turbo:frame-load…

sparkle
- 7,530
- 22
- 69
- 131
1
vote
0 answers
How to configure jest with `ts-jest` to parse/transform projects in the `packages/` folder of a basic Turborepo project?
Has anybody here used ts-jest in the context of Turborepo?
My understanding for a standard Turborepo setup is that in general, the configs and common packages live in /packages/* (e.g. /packages/jest-config, but most of your apps will live in…

Ben Wong
- 339
- 1
- 8
1
vote
0 answers
Turborepo: tell application to watch package changes
Let's say I have this project structure with monorepo
my-monorepo
├─ apps
│ ├─ api
│ └─ jobs
├─ packages
│ ├─ tsconfig
│ └─ shared-utils
└─ package.json
api depends on shared-utils, so in api/package.json I have:
"scripts": {
"dev":…

Paul Serre
- 457
- 3
- 11