# \#turbo

**URL:** https://discuss.rubyonrails.org/tag/turbo/41.md

[Latest](https://discuss.rubyonrails.org/latest.md) · [Categories](https://discuss.rubyonrails.org/categories.md) · [Tags](https://discuss.rubyonrails.org/tags.md)

---

## [Redirect after form submission with result page](https://discuss.rubyonrails.org/t/redirect-after-form-submission-with-result-page/91792)

<div class="topic-metadata">

**Author:** [@dari-us](https://discuss.rubyonrails.org/u/dari-us)\
**Replies:** 2\
**Last updated:** [November 12, 2026, 12:50pm UTC](https://discuss.rubyonrails.org/t/redirect-after-form-submission-with-result-page/91792 "2026-11-12T12:50:41Z")

</div>

I have a form in my app where users can bulk edit some tag names. Once the operation is finished, I would like to display a page featuring all concrete changes to these records. When using Turbo, it requires me to redir…

---

## [Turbo morph with same page redirect](https://discuss.rubyonrails.org/t/turbo-morph-with-same-page-redirect/85301)

<div class="topic-metadata">

**Author:** [@jordancoil](https://discuss.rubyonrails.org/u/jordancoil)\
**Replies:** 3\
**Last updated:** [July 8, 2025, 4:04pm UTC](https://discuss.rubyonrails.org/t/turbo-morph-with-same-page-redirect/85301 "2025-07-08T16:04:25Z")

</div>

I’m trying to get turbo morph to work for controller that calls redirect\_to request.referer, ie. the current page. The reason I’m using request.referer is that the controller in question handles requests to add/edit/dele…

---

## [Turbo Frame with View Transitions](https://discuss.rubyonrails.org/t/turbo-frame-with-view-transitions/88659)

<div class="topic-metadata">

**Author:** [@rctneil](https://discuss.rubyonrails.org/u/rctneil)\
**Replies:** 3\
**Last updated:** [May 14, 2025, 11:07am UTC](https://discuss.rubyonrails.org/t/turbo-frame-with-view-transitions/88659 "2025-05-14T11:07:37Z")

</div>

Should turbo frame changes transition with view transitions by default? I have a frame with a form in, the form gets submitted via Stimulus every time a field is changed, I want the content inside the frame to transitio…

---

## [Broadcast HTML without a partial](https://discuss.rubyonrails.org/t/broadcast-html-without-a-partial/89155)

<div class="topic-metadata">

**Author:** [@seanhogge](https://discuss.rubyonrails.org/u/seanhogge)\
**Replies:** 4\
**Last updated:** [May 2, 2025, 3:16pm UTC](https://discuss.rubyonrails.org/t/broadcast-html-without-a-partial/89155 "2025-05-02T15:16:02Z")

</div>

I’m using something like: after\_create\_commit -\> { broadcast\_update\_later\_to( \[ self, :details \], target: :details, html: self.html\_column ) } This raises an error because I don’t have a partial for the model i…

---

## [Redirect to html format after Turbo form submission](https://discuss.rubyonrails.org/t/redirect-to-html-format-after-turbo-form-submission/88886)

<div class="topic-metadata">

**Author:** [@jtreitz](https://discuss.rubyonrails.org/u/jtreitz)\
**Replies:** 0\
**Last updated:** [March 15, 2025, 8:26am UTC](https://discuss.rubyonrails.org/t/redirect-to-html-format-after-turbo-form-submission/88886 "2025-03-15T08:26:13Z")

</div>

Hi, I have a Turbo-enabled login form \<%= form\_with url: session\_path do |form| %\> As expected this sends the following request to my login controller: Request POST /session HTTP/1.1 Accept: text/vnd.turbo-stream.htm…

---

## [How to configure Preline UI javascript to work with Rails 7 esbuild Turbo](https://discuss.rubyonrails.org/t/how-to-configure-preline-ui-javascript-to-work-with-rails-7-esbuild-turbo/84522)

<div class="topic-metadata">

**Author:** [@bunamyfa](https://discuss.rubyonrails.org/u/bunamyfa)\
**Replies:** 3\
**Last updated:** [January 28, 2025, 9:05pm UTC](https://discuss.rubyonrails.org/t/how-to-configure-preline-ui-javascript-to-work-with-rails-7-esbuild-turbo/84522 "2025-01-28T21:05:59Z")

</div>

How to properly integrate Preline UI and their js into rails 7 esbuild turbo app? I know that the issue is related to turbo:load, however I do not know how to address it. So far I configured tailwind.config.js to inclu…

---

## [Aborting turbo on request fail](https://discuss.rubyonrails.org/t/aborting-turbo-on-request-fail/88172)

<div class="topic-metadata">

**Author:** [@court3nay](https://discuss.rubyonrails.org/u/court3nay)\
**Replies:** 0\
**Last updated:** [December 10, 2024, 6:43am UTC](https://discuss.rubyonrails.org/t/aborting-turbo-on-request-fail/88172 "2024-12-10T06:43:33Z")

</div>

Currently if there’s a 400 or other such error on a link on a simple rails app out of the box, the page just refreshes (rails 8). There doesn’t seem to be away to do ‘event.stop’ or similar from within an event listener …

---

## [HOWTO? streaming response to the browser](https://discuss.rubyonrails.org/t/howto-streaming-response-to-the-browser/88132)

<div class="topic-metadata">

**Author:** [@r952](https://discuss.rubyonrails.org/u/r952)\
**Replies:** 2\
**Last updated:** [December 9, 2024, 4:45pm UTC](https://discuss.rubyonrails.org/t/howto-streaming-response-to-the-browser/88132 "2024-12-09T16:45:44Z")

</div>

I have an external process that takes a while and emits lines. I’d like to send those lines back to the browser as they happen. I can’t work out how to do this. I’ve got this so far, and whilst I can see the lines bein…

---

## [TurboStream requests behaving differently on local environment and live staging environment](https://discuss.rubyonrails.org/t/turbostream-requests-behaving-differently-on-local-environment-and-live-staging-environment/86510)

<div class="topic-metadata">

**Author:** [@Tendresse](https://discuss.rubyonrails.org/u/Tendresse)\
**Replies:** 0\
**Last updated:** [August 30, 2024, 5:46pm UTC](https://discuss.rubyonrails.org/t/turbostream-requests-behaving-differently-on-local-environment-and-live-staging-environment/86510 "2024-08-30T17:46:16Z")

</div>

I’m having a strange behavior occur and I can’t trace it back through the Rails source code, hopefully someone can point me in the right direction. I’m using a lot of turbo\_stream type requests and it’s been working fin…

---

## [Trying (and failing) to use page refreshes with morphing in Turbo 8](https://discuss.rubyonrails.org/t/trying-and-failing-to-use-page-refreshes-with-morphing-in-turbo-8/85912)

<div class="topic-metadata">

**Author:** [@devaniljr](https://discuss.rubyonrails.org/u/devaniljr)\
**Replies:** 2\
**Last updated:** [August 21, 2024, 9:52am UTC](https://discuss.rubyonrails.org/t/trying-and-failing-to-use-page-refreshes-with-morphing-in-turbo-8/85912 "2024-08-21T09:52:15Z")

</div>

My goal is to have a post feed that will be automatically updated for all users. So, that’s what I try so far: Added this in my layout: \<%= turbo\_refreshes\_with method: :morph, scroll: :preserve %\> \<%= yield :head %\> …

---

## [Do we need official Rails 7 guides for integrating with turbo to counter stackoverflow cruft?](https://discuss.rubyonrails.org/t/do-we-need-official-rails-7-guides-for-integrating-with-turbo-to-counter-stackoverflow-cruft/83635)

<div class="topic-metadata">

**Author:** [@dougjq](https://discuss.rubyonrails.org/u/dougjq)\
**Replies:** 4\
**Last updated:** [July 13, 2024, 8:45pm UTC](https://discuss.rubyonrails.org/t/do-we-need-official-rails-7-guides-for-integrating-with-turbo-to-counter-stackoverflow-cruft/83635 "2024-07-13T20:45:36Z")

</div>

Rails 7, turbo, frames, streams and stimulus went through a rapid evolution over the last couple of years and there are many search engine indexed discussions describing bugs, solutions and patterns that no longer apply.…

---

## [Turbostream websockets can't connect when a CDN with WAF is being used](https://discuss.rubyonrails.org/t/turbostream-websockets-cant-connect-when-a-cdn-with-waf-is-being-used/85654)

<div class="topic-metadata">

**Author:** [@jahseng-lee](https://discuss.rubyonrails.org/u/jahseng-lee)\
**Replies:** 2\
**Last updated:** [April 28, 2024, 7:54am UTC](https://discuss.rubyonrails.org/t/turbostream-websockets-cant-connect-when-a-cdn-with-waf-is-being-used/85654 "2024-04-28T07:54:47Z")

</div>

Hey all I’m using Rails 7 + Hotwire, hosting on Heroku using Expedited CDN. Expedited is great and easy to configure so far EXCEPT WAF doesn’t support Websocket connections. Thus, I’ve recently been getting WebSocket c…

---

## [Turbo + Stimulus: Show/Hide form fields based on the value of a select](https://discuss.rubyonrails.org/t/turbo-stimulus-show-hide-form-fields-based-on-the-value-of-a-select/84862)

<div class="topic-metadata">

**Author:** [@Lobosque](https://discuss.rubyonrails.org/u/Lobosque)\
**Replies:** 1\
**Last updated:** [March 19, 2024, 1:02am UTC](https://discuss.rubyonrails.org/t/turbo-stimulus-show-hide-form-fields-based-on-the-value-of-a-select/84862 "2024-03-19T01:02:33Z")

</div>

I am still trying to get used to using turbo + hotwire to solve simple tasks like this one on the title. I can definitely write a Stimulus controller to solve this particular problem, but I am not sure if this would be …

---

## [Turbo + Active Storage: Image rendering fails using after\_commit hook but succeeds from view](https://discuss.rubyonrails.org/t/turbo-active-storage-image-rendering-fails-using-after-commit-hook-but-succeeds-from-view/85255)

<div class="topic-metadata">

**Author:** [@Anthony\_Ross1](https://discuss.rubyonrails.org/u/Anthony_Ross1)\
**Replies:** 7\
**Last updated:** [March 11, 2024, 8:40pm UTC](https://discuss.rubyonrails.org/t/turbo-active-storage-image-rendering-fails-using-after-commit-hook-but-succeeds-from-view/85255 "2024-03-11T20:40:48Z")

</div>

I’m trying to simplify the use case here as much as possible but I have the following model: class Product \< ApplicationRecord belongs\_to :company has\_many\_attached :images after\_create\_commit -\> do broadcast…

---

## [Unexpected behavior with Turbo redirect/morph and Turbo frame](https://discuss.rubyonrails.org/t/unexpected-behavior-with-turbo-redirect-morph-and-turbo-frame/84790)

<div class="topic-metadata">

**Author:** [@danecando](https://discuss.rubyonrails.org/u/danecando)\
**Replies:** 2\
**Last updated:** [February 5, 2024, 12:37pm UTC](https://discuss.rubyonrails.org/t/unexpected-behavior-with-turbo-redirect-morph-and-turbo-frame/84790 "2024-02-05T12:37:22Z")

</div>

I have a Turbo modal setup in my application that opens when the inner turbo frame src is set and loaded. Here’s the important bits: (using Alpine) \<div x-data="{ open: false }" @turbo:frame-load="if ($event.target.id =…

---

## [Proper resource architecture with Hotwire8 and Morphing](https://discuss.rubyonrails.org/t/proper-resource-architecture-with-hotwire8-and-morphing/84506)

<div class="topic-metadata">

**Author:** [@janroesner](https://discuss.rubyonrails.org/u/janroesner)\
**Replies:** 0\
**Last updated:** [December 29, 2023, 12:23pm UTC](https://discuss.rubyonrails.org/t/proper-resource-architecture-with-hotwire8-and-morphing/84506 "2023-12-29T12:23:45Z")

</div>

In a plain old Rails app using Server-Side Rendering (SSR), the architectural approach for a standard resource is clear – you use a standard scaffold. Conceptually straightforward, but from a usability standpoint, it has…

---

## [Turbo Frames 304 code - small problem with displaying new form on index page using traditional Rails scaffold](https://discuss.rubyonrails.org/t/turbo-frames-304-code-small-problem-with-displaying-new-form-on-index-page-using-traditional-rails-scaffold/84500)

<div class="topic-metadata">

**Author:** [@bunamyfa](https://discuss.rubyonrails.org/u/bunamyfa)\
**Replies:** 0\
**Last updated:** [December 28, 2023, 6:05pm UTC](https://discuss.rubyonrails.org/t/turbo-frames-304-code-small-problem-with-displaying-new-form-on-index-page-using-traditional-rails-scaffold/84500 "2023-12-28T18:05:29Z")

</div>

In order to understand turbo frames, I generated scaffold cars brand model And as an exercise I wanted to display “new form” on the index page, instead of doing full html body replacement So I wrapped link\_to "new ca…

---

## [Forcing a page reload on turbo\_frame when form is submitted with correct data](https://discuss.rubyonrails.org/t/forcing-a-page-reload-on-turbo-frame-when-form-is-submitted-with-correct-data/84354)

<div class="topic-metadata">

**Author:** [@CurioShade](https://discuss.rubyonrails.org/u/CurioShade)\
**Replies:** 3\
**Last updated:** [December 9, 2023, 9:36pm UTC](https://discuss.rubyonrails.org/t/forcing-a-page-reload-on-turbo-frame-when-form-is-submitted-with-correct-data/84354 "2023-12-09T21:36:16Z")

</div>

I have been working with turbo frames to make login modal and I found a situation where I need to disable turbo functionality of page updating without a refresh. The problem is that I want to refresh the page only if the…

---

## [Turbo Not Accepting Turbo Stream](https://discuss.rubyonrails.org/t/turbo-not-accepting-turbo-stream/84227)

<div class="topic-metadata">

**Author:** [@DaAwesomeP](https://discuss.rubyonrails.org/u/DaAwesomeP)\
**Replies:** 2\
**Last updated:** [November 17, 2023, 3:11pm UTC](https://discuss.rubyonrails.org/t/turbo-not-accepting-turbo-stream/84227 "2023-11-17T15:11:10Z")

</div>

Hello! I am roughly following an example I found here and running into some issues: ChatGPT streaming with ruby-openai, Rails 7, Hotwire, Turbostream, Sidekiq and Tailwind! · GitHub (a major difference is I have a model…

---

## [Turbo make browser look like page is loading](https://discuss.rubyonrails.org/t/turbo-make-browser-look-like-page-is-loading/83835)

<div class="topic-metadata">

**Author:** [@rctneil](https://discuss.rubyonrails.org/u/rctneil)\
**Replies:** 3\
**Last updated:** [October 16, 2023, 9:10am UTC](https://discuss.rubyonrails.org/t/turbo-make-browser-look-like-page-is-loading/83835 "2023-10-16T09:10:16Z")

</div>

Hi, I use Turbo in my app for page navigations. I really like this but I dislike how from the browsers perspective, it doesn’t appear to the user that a new page is loading (because technically it’s not a new navigatio…

---

## [Use turbo-rails js from the CDN fails loading actioncable](https://discuss.rubyonrails.org/t/use-turbo-rails-js-from-the-cdn-fails-loading-actioncable/83487)

<div class="topic-metadata">

**Author:** [@michelson](https://discuss.rubyonrails.org/u/michelson)\
**Replies:** 1\
**Last updated:** [August 21, 2023, 12:55am UTC](https://discuss.rubyonrails.org/t/use-turbo-rails-js-from-the-cdn-fails-loading-actioncable/83487 "2023-08-21T00:55:43Z")

</div>

Hi there, I’m developing a rails engine and I’m trying to add a simple js layer that connects some with hotwire and was streams, I’m using some modules from skypack and I’ve came up to this. \<script type="module"\> …

---

## [Clobber and precompile assets after every change in stimulus controller](https://discuss.rubyonrails.org/t/clobber-and-precompile-assets-after-every-change-in-stimulus-controller/83361)

<div class="topic-metadata">

**Author:** [@eimantas](https://discuss.rubyonrails.org/u/eimantas)\
**Replies:** 7\
**Last updated:** [August 3, 2023, 12:17am UTC](https://discuss.rubyonrails.org/t/clobber-and-precompile-assets-after-every-change-in-stimulus-controller/83361 "2023-08-03T00:17:58Z")

</div>

Hi all, I’m trying to get back into rails development and recently started a project that I initiated with importmaps for managing javascript libraries. However I can’t seem to pin certain libraries and decided to migra…

---

## [HTTP Redirect Response in Turbo](https://discuss.rubyonrails.org/t/http-redirect-response-in-turbo/83167)

<div class="topic-metadata">

**Author:** [@e\_a](https://discuss.rubyonrails.org/u/e_a)\
**Replies:** 0\
**Last updated:** [June 30, 2023, 2:12pm UTC](https://discuss.rubyonrails.org/t/http-redirect-response-in-turbo/83167 "2023-06-30T14:12:13Z")

</div>

I’m working on updating an application from Turbolinks/UJS to Turbo and have a few questions regarding the changes related to HTTP redirect responses (questions bolded below). The documentation says my redirects should …
