Hotwire Not Working Inside of Namespace

0
Rails
This seems like an easy fix, but I am not sure why its not working. I have an admin dashboard using Hotwire, but I can't seem to create records for my gym model (There are no errors, and it will wo...
Brian Gilbank posted

With Hotwire and a long-running background job, how can I show a message indicating that data is loading?

1
Rails
So I have a long-running API call running in a background job. As records are created/updated/removed in that job I have them broadcasted to the user. I would like to have a notification/badge adde...
Solved

Turbo Stream - dynamically replacing partial on the page

6
Rails
I have an edit user page that has multiple cards on it. I have each card wrapped in its own turbo frame tag with a unique id. On the update action in my controller if I just redirect_to @user the s...

How to use Rails Request.js Discussion

4
General
Hey Chris, this looks like a great addition to rails and thanks for adding the turbo stream support! I'm working on an infinite scroll where at the end of the page a stimulus controller gets the n...

Regarding 2 imports when running `rails hotwire:install`

1
Rails
Hi, When running `rails hotwire:install`, it shows 2 warnings: ``` You must import "./controllers" in your JavaScript entrypoint You must import @hotwired/turbo-rails in your JavaScript entrypoint ...
Askar replied

How to setup Deno with Neovim's COC

0
Javascript
Hi, I am using Neovim, COC with LSP. I installed Deno for Javascript. It is Plug 'williamboman/nvim-lsp-installer' Plug 'prabirshrestha/vim-lsp' Plug 'neovim/nvim-lspconfig' Plug ...
phq posted

How Do I send a "Turbo Hotwire Broadcast" only when a record with a specific name value is created or updated, and for a specific partial?

0
Rails
Hello, you have a great community in Gorails. I have a Rails View with 3 numerical integer indicators: speed, temperature and pressure. These values ​​are stored in SavedObject model as serialized ...
Luis Cuevas posted

Pagination with Stimulus

3
Rails
I'm trying to migrate to Stimulus and I thought a good place to start would be to move all my UJS style partials that are using jQuery to Stimulus. It would be great to use one Stimulus controller ...
Cory Johnson replied

Finding video

2
General
Hi, I am looking for part 2 and 3 of the series "Realtime with Hotwire and ActionMailbox" that are only available as preview on Youtube - am I missing something? Thank you very much
Hanamo replied

How to upgrade from Turbolinks to Hotwire & Turbo Discussion

12
General
Hey Chris, thanks for going over Turbo and StimulusJS 2.0 changes, I'm really excited about using them in my projects! One really big thing that would be great to cover is using dialogs/modals wit...
Thomas Connolly replied

Stimulus based ActionCable Subscriptions - possible race condition related to turbolinks preview?

0
Rails
Hi, I've been upgrading a legacy app to leverage Webpacker and Stimulus with the intention of moving to Hotwire eventually too. We have a few ActionCable (AC) channels used here and there and it se...
Craig Chamberlain posted

Jumpstart App get's stucked with wrong login data

9
General
Hi. I've created a new app by using the jumpstart template: rails new testapp -d postgresql -m https://raw.githubusercontent.com/excid3/jumpstart/master/template.rb' rails db:create db:migrate rai...
Martin replied
Solved

Multiple Device support with Request Variants in Rails Discussion

5
General
Great video as always! How does this method compare with using responsive design with a CSS framework like Bootstrap or Tailwind? Is this a better method if you want a very specific or completely ...
Tabish Iqbal replied

DHH's most recent hotwire update...

1
Rails
I just caught a tweet from DHH mentioning a new [hotwire related pull request](https://github.com/rails/rails/pull/42999). I'm curious to know how the go rails community feels about this. Seems lik...
Chris Oliver replied

Hotwire turbo stream update_or_[append/prepend] ?

1
Rails
Given a list of items that could be visible or not on a page (like a paginated list ), how is the best way to send from the server an update or append to that list? I Mean, update element when the ...
Miguel Michelson Martinez replied

ViewComponents and Tailwind CSS JIT

1
CSS
I created a flash view component to display flash messages. It does work, but the javascript trigger its display does not work as expected. Instead of displaying on the spot, it waits for like 5 s...
Stéphane Paquet replied
Solved

Hotwire prevents link_to from going to a different website

1
General
I recently added Hotwire to my rails app to update modals but this broke a link_to I had that redirected users to stripe. I looked online for ways to work around it but since Hotwire is relatively ...
Mark Nelson replied

Hotwire/Turbo + Webpacker/Stimulusjs

0
General
I think I'm confused. I love the functionality of Hotwire and experimented a little with it in a fresh app. I don't understand though, if I can also have Stimulusjs running - I have different needs...
Bevin posted

Implementing Hotwire

1
Rails
Hello good people. I was watching DHH's video on hotwire and @Chris video on on this site demonstrating hotwire. Do we still need stimulus js in case we want to implement that on the group chat ...
Suleiman Nassor replied
Solved

How to disable TURBO_STREAM for the `form_with` helper?

1
Rails
I want to incrementally start Turbo on my app but when I enabled it it has broken all my forms. How to disable it from `form_with` in order to be able to incrementally update my app?
Pedro Fernandes Steimbruch replied
Solved

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.