Maintaining State with Turbo Frames in Ruby on Rails 7

  Рет қаралды 2,369

Deanin

Deanin

Жыл бұрын

Persist parts of your application between pages using Turbo Frames in a similar way to how you might persist data in a SPA framework.
Checkout my course(s) at: learn.deanin.com
This Ruby on Rails 7 tutorial covers maintaining state with Turbo Frames. Hope you enjoy.
Source:
github.com/Deanout/turbo_persist
Links:
turbo.hotwired.dev/handbook/b...
turbo.hotwired.dev/reference/...
Join this channel to help support these videos:
/ @deanin
Follow me on social media:
linktr.ee/deanin
If you liked this video, please consider subscribing: t.co/RZ4EwP0F2a
#Deanin #Software #Programming

Пікірлер: 10
@Deanin
@Deanin Жыл бұрын
Hey, sorry if this one is lower quality than usual. Combination of real life and computer issues had me in a not great head space for this video.
@far2go375
@far2go375 Жыл бұрын
Amazing stuff mate as always! Could you make a couple of videos please?? 1) Handling loading spinners in every situation, possibly as automated as possible 2) Handling errors gracefully 🙏🙏🙏
@btrewern
@btrewern Жыл бұрын
Feels like you are over thinking this one. If you add an id to the form and add data-turbo-permanent to it. It just works! No need for a turbo frame or anything else.
@stpaquet
@stpaquet Жыл бұрын
I don't know why, but I would have placed data: { turbo_permanent: true } in the form to avoid the first situation you experienced.
@azizdevfull
@azizdevfull Жыл бұрын
Very Helpful : )
@SergeyMoiseev
@SergeyMoiseev 11 ай бұрын
data: { turbo: "permanent" } is data-turbo="permanent", while you looking for data: { turbo_permanent: true }
@TheJackaldesign
@TheJackaldesign Жыл бұрын
I getting "Content Missing" text in my views after update my app. This should help. Thank you!
@kwhandy
@kwhandy Жыл бұрын
im searching "how to keep leftover rice" right now yt: you're looking for keeping your leftover rice to fridge? me: your right yt: here you go, but hey wanna see how basic state management works in hotwire? me: SSSSUUUUUREEEEEE
@Deanin
@Deanin Жыл бұрын
Blows my mind how bad the search in KZbin, and by extension Google, has gotten lmao. Feels like you can't go more than 5 results down before it starts giving you some strange unrelated results.
@Tomarus32
@Tomarus32 5 ай бұрын
It didn't work because you set data-turbo="permanent" html attribute instead of data-turbo-permanent. In ERB you should have written data: { turbo_permanent: true } instead of data: { turbo: "permanent" }
DHH - Ruby on Rails, 37signals, and the future of web development
1:09:57
ДЕНЬ РОЖДЕНИЯ БАБУШКИ #shorts
00:19
Паша Осадчий
Рет қаралды 4,5 МЛН
1 класс vs 11 класс (неаккуратность)
01:00
БЕРТ
Рет қаралды 4,6 МЛН
CAN YOU HELP ME? (ROAD TO 100 MLN!) #shorts
00:26
PANDA BOI
Рет қаралды 36 МЛН
КАКОЙ ВАШ ЛЮБИМЫЙ ЦВЕТ?😍 #game #shorts
00:17
Why didn't the Angular team just use RxJS instead of Signals?
8:15
Joshua Morony
Рет қаралды 84 М.
Everything you need to know about Kotlin 2.0 🟣
11:05
Stevdza-San
Рет қаралды 17 М.
Rails on Hetzner with Kamal - Deployments from Scratch PT. 1
19:19
Sam Johnson
Рет қаралды 1,5 М.
5 Tips For Object-Oriented Programming Done Well - In Python
16:08
Rails vs JavaScript: Which one should you use for your SaaS?
12:50
Programming vs Coding - What's the difference?
5:59
Aaron Jack
Рет қаралды 1,9 МЛН
Dev Containers - New To Rails 8!
11:42
Deanin
Рет қаралды 3,6 М.
The Man in the Iron Lung
5:22
Mitch Summers
Рет қаралды 36 МЛН
7 Database Paradigms
9:53
Fireship
Рет қаралды 1,5 МЛН
ДЕНЬ РОЖДЕНИЯ БАБУШКИ #shorts
00:19
Паша Осадчий
Рет қаралды 4,5 МЛН