Episode
Вставка
- Опубліковано 15 жов 2024
- In this episode, we look at creating an unobtrusive and efficient way to launch Bootstrap modals using Turbo and Stimulus. www.driftingru...
This episode is sponsored by Hook Relay
► Visit the Merchandise Store - www.railsstore...
► Ruby on Rails Templates - www.rubidium.io
► Subscribe to Drifting Ruby at www.driftingru...
Fantastic ideas! Thank you very much!
Hotwire and Turbo is really an amazing tool! You just have to change your mindset to work properly with it.
This episode have some errors and isn't using import maps
If your validation error message is being shown on .html.erb instead of remote_modal, update your controller's create and update action method.
Thanks great episode
Hi its very useful but, what about multiple modal open with different fields?
That's really powerful, but my I ask?
How was it possible for Rails to add the error message at 15:42 just by you adding the validates method in the Project modal? Didn't you add anything in the view?
same question!
@@saqibhabib4678 I think the errors comes with the scaffold.
@@mikopiko yup ..
the form builder shows the errors on page if there is any
@@mooktakim Thanks
Why do we need target: :_top ?
at 6:34 should be "r => r.text()" not "t.text()" right?
The answer is yes, you can see it corrected in 12:50
@@juanicolas84 thanks bro you are life saver