Turbo Frame Modals (Popups) | Ruby On Rails 7 Tutorial

  Рет қаралды 12,019

Deanin

Deanin

Күн бұрын

Пікірлер: 23
@Deanin
@Deanin Жыл бұрын
This is one of those tutorials that I made for myself in a month when I forget how to do this, but I really want to make a modal real quick lol. I have a twitch that I'm debating using soon, so please follow it 👀www.twitch.tv/deanout
@carltanner3632
@carltanner3632 Жыл бұрын
Thanks for this Dean. This tutorial about turbo frame modals is super helpful. I appreciate that you keep it basic and mention how id could be used to show the details of the show page.
@sanila2011
@sanila2011 5 ай бұрын
thanks bro for the great tutorial, i'd like to notice than it's useful to add `render layout: false` into controller actions while working with modals because it allows your app not to load the whole layout but only a single view with the modal
@cvaldivia83
@cvaldivia83 Жыл бұрын
Thank you so much for the tutorial, so easy to follow and so helpful
@stpaquet
@stpaquet Жыл бұрын
Very interesting as usual. You could have added a section about using turbo_frame_request? in the controller to prevent users from accessing the /posts/new or /posts/edit as the UI is now a popup.
@aynurshauerman
@aynurshauerman Жыл бұрын
Thank you, it is very useful!
@GlaylsonAlves
@GlaylsonAlves Жыл бұрын
Exactly what I was looking for, just need to tweak for bootstrap. Thanks
@volkanbeyoglu235
@volkanbeyoglu235 Жыл бұрын
did u find a solution for Bootstrap? I am having trouble to display the form inside the modal.
@azizdevfull
@azizdevfull Жыл бұрын
very helpful : )
@DillonWreek
@DillonWreek Жыл бұрын
Great stuff. What if you would like to pass a variable to the modal? Like: you have a form that on submission sends a post to the create action, how can the create action show and pass a @variable to the modal?
@yuanweizhou935
@yuanweizhou935 Жыл бұрын
Can you create a modal pop up for delete confirmation as well?
@volkanbeyoglu235
@volkanbeyoglu235 Жыл бұрын
Hello. Thank you. Can you show us how to implement this with Bootstrap modal and with the buttons in the modal footer? Thank you
@gauravrewaliya3269
@gauravrewaliya3269 Жыл бұрын
What can i do i click on new post , create new post then current page ,modal popup turbo_frame give Content missing Insted of reloading any hint
@ViktorSchmidt
@ViktorSchmidt Жыл бұрын
Great ❣️
@AbdulHannan-sj2xi
@AbdulHannan-sj2xi Жыл бұрын
How can we change the background page to dull or change its opacity as bootstrap modal doing.
@moviekapsula
@moviekapsula Жыл бұрын
good bro
@btrewern
@btrewern Жыл бұрын
Hi, just an fyi, this does not work with the current version of Turbo. It seems you need to add "data: { turbo_frame: '_top' }" to the form_with call. I have been banging my head against a wall for a couple of days so thought I would share this.
@MrJuanPuerto
@MrJuanPuerto Жыл бұрын
Can you please explain a bit better this? i cannot get it to work
@carltanner3632
@carltanner3632 Жыл бұрын
BTW, I asked chatGPT how to create a modal with Turbo, and the response was a bit more complicated.
@JohanDonadoBanderas
@JohanDonadoBanderas Жыл бұрын
You would have to show the behavior when new Post is created. It behaves strange.
@cyph2082
@cyph2082 8 ай бұрын
Yep and a submission, that could not be validated closes the modal immediately and the user cannot see any error messages.
@haroldpepete
@haroldpepete Жыл бұрын
you should put tha base model in a partial to reuse its functionality
@xiaohuizhang7004
@xiaohuizhang7004 Жыл бұрын
how about making a nested modal? wait your next video
Turbo Frame Pages in Ruby on Rails 7
15:47
Deanin
Рет қаралды 9 М.
Dynamic Select Fields in Rails using Hotwire
19:46
GoRails
Рет қаралды 25 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 52 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,2 МЛН
When To Use React Instead Of Hotwire In Rails 7?
17:30
Deanin
Рет қаралды 9 М.
Custom Turbo Confirm Modals with Hotwire in Rails
9:10
GoRails
Рет қаралды 9 М.
What is Hotwire?
6:55
The Pragmatic Studio
Рет қаралды 12 М.
Add Comments with Ruby on Rails
25:33
CJ Avilla (cjav_dev)
Рет қаралды 5 М.
Ruby on Rails Hotwire + Turbo for Beginners
17:11
Malachi Rails
Рет қаралды 4,9 М.
5 Python Libraries You Should Know in 2025!
22:30
Keith Galli
Рет қаралды 65 М.
Ruby on Rails #63 Hotwire Modals (the right way)
21:15
SupeRails
Рет қаралды 10 М.
A new approach to container and wrapper classes
25:27
Kevin Powell
Рет қаралды 270 М.
Turbo Frames vs. Turbo Streams
8:25
Mix & Go
Рет қаралды 19 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН