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

  Рет қаралды 9,131

Deanin

Deanin

Жыл бұрын

Let's take a look at creating popups using turbo frames. This tutorial lets us create modals in our Ruby on Rails 7 apps with ease!
Checkout my course(s) at: learn.deanin.com
Source:
github.com/Deanout/turbo_fram...
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

Пікірлер: 22
@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.
@cvaldivia83
@cvaldivia83 10 ай бұрын
Thank you so much for the tutorial, so easy to follow and so helpful
@aynurshauerman
@aynurshauerman Жыл бұрын
Thank you, it is very useful!
@azizdevfull
@azizdevfull Жыл бұрын
very 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.
@yuanweizhou935
@yuanweizhou935 9 ай бұрын
Can you create a modal pop up for delete confirmation as well?
@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?
@GlaylsonAlves
@GlaylsonAlves Жыл бұрын
Exactly what I was looking for, just need to tweak for bootstrap. Thanks
@volkanbeyoglu235
@volkanbeyoglu235 6 ай бұрын
did u find a solution for Bootstrap? I am having trouble to display the form inside the modal.
@ViktorSchmidt
@ViktorSchmidt Жыл бұрын
Great ❣️
@volkanbeyoglu235
@volkanbeyoglu235 6 ай бұрын
Hello. Thank you. Can you show us how to implement this with Bootstrap modal and with the buttons in the modal footer? Thank you
@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
@gauravrewaliya3269
@gauravrewaliya3269 10 ай бұрын
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
@carltanner3632
@carltanner3632 Жыл бұрын
BTW, I asked chatGPT how to create a modal with Turbo, and the response was a bit more complicated.
@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 10 ай бұрын
Can you please explain a bit better this? i cannot get it to work
@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
@JohanDonadoBanderas
@JohanDonadoBanderas Жыл бұрын
You would have to show the behavior when new Post is created. It behaves strange.
@cyph2082
@cyph2082 Ай бұрын
Yep and a submission, that could not be validated closes the modal immediately and the user cannot see any error messages.
Turbo Frame Pages in Ruby on Rails 7
15:47
Deanin
Рет қаралды 7 М.
When To Use React Instead Of Hotwire In Rails 7?
17:30
Deanin
Рет қаралды 8 М.
skibidi toilet 73 (part 2)
04:15
DaFuq!?Boom!
Рет қаралды 32 МЛН
Не пей газировку у мамы в машине
00:28
Даша Боровик
Рет қаралды 8 МЛН
Useful Gadget for Smart Parents 🌟
00:29
Meow-some! Reacts
Рет қаралды 10 МЛН
Refactoring Turbo Streams into Turbo Frames
10:54
GoRails
Рет қаралды 3,5 М.
Compiling MS-DOS 4.0 using DOSbox & Qemu
17:59
Neozeed
Рет қаралды 3,3 М.
Stimulus Nested Forms | Ruby on Rails 7 Tutorial
14:37
Deanin
Рет қаралды 7 М.
Inline Editing with Turbo Frames in Rails
20:39
GoRails
Рет қаралды 13 М.
Maintaining State with Turbo Frames in Ruby on Rails 7
11:07
What is Hotwire?
6:55
The Pragmatic Studio
Рет қаралды 9 М.