Using Stimulus To Reset Scroll Position And Forms In Ruby On Rails 7 | Turbo Tutorial 3

  Рет қаралды 4,558

Deanin

Deanin

Күн бұрын

Пікірлер: 12
@Deanin
@Deanin 3 жыл бұрын
Full Playlist -> kzbin.info/www/bejne/i6e3faijmKqAnbc Part 4 will be up next Friday and will cover the user avatars for Devise using active storage. It'll also set your current room to have an active CSS. Part 5 will be up a week from Friday, and cover using Action cable for online/offline/away statuses. ;)
@seriouslyiknowhowtoread
@seriouslyiknowhowtoread 5 ай бұрын
DOMNodeInserted is deprecated use Connected and Disconnected Callbacks ( stimulus docs )
@JimmyHsiao-z1l
@JimmyHsiao-z1l Жыл бұрын
The event that triggers the dom to scroll down really saves me! Thank you
@thedhinals4968
@thedhinals4968 2 жыл бұрын
the great tutor ruby on rails ever , thank you very munch sir 😊😊
@ZockaRocka
@ZockaRocka 2 жыл бұрын
On the last step, implementing the resetScroll: Why didnt you need to put messages as an argument of the function?
@sethcox8253
@sethcox8253 Жыл бұрын
Thanks Dean. Question for you... when my form is wrapped in a turboframe, this.element.reset() works ONLY if the form didn't contain any valition errors previous to the valid form submission. In other words, let say I submit the form empty to trigger a validation error, then when the form is submitted a second time in a valid manner, then this.element.reset() will not remove those validation messaages... even though the record does save. Any ideas on this?
@manjunathanj9316
@manjunathanj9316 Жыл бұрын
😂 the way he spelt `DOMNodeInserted` ❤
@natashakhan6845
@natashakhan6845 2 жыл бұрын
your are great sir and thanks for every thing
@basemshamseldin8959
@basemshamseldin8959 2 жыл бұрын
Hi @Deanin, Thanks for that great tutorial The bug was not solved for me using the snippet have you found any other solution Deanin? it's actually added automatically now by default into development.rb but the pictures keep breaking on sending new messages
@Deanin
@Deanin 11 ай бұрын
hey, where's the source code??
@proxikal
@proxikal 2 жыл бұрын
Loving the tutorial! I'm newer to Ruby but I've been coding for a little over 20 years. I just came from another person doing the same thing you're doing now for resetting an element.. And I just can't stop thinking to myself, this is hella overkill for something that can be done in JS and HTML with one line under 15 characters..... I mean you created MULTIPLE pages...and many lines of code. Why not just print the "Create Message" button using plain HTML and than Javascript into the html element right there? Is there some type of advantage that I'm not seeing for going this far overboard for something so simple? I'm not in any way trying to sound rude. I'd really like to know as I'm falling in love with rails. Just can't seem to get over the fact that it REALLY makes you over work in some cases, such as the form reset. Again THANK YOU for the amazing videos and keep them coming!
Auto-Submitting Forms in Rails & Custom Turbo Stream Actions
10:43
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
The Ruby On Rails Junior Developer Problem
16:03
Deanin
Рет қаралды 21 М.
Custom Turbo Confirm Modals with Hotwire in Rails
9:10
GoRails
Рет қаралды 9 М.
Ruby on Rails #60 Hotwire Turbo Streams Autocomplete Search
27:28
Kamal Traefik Dashboard for Ruby on Rails 7
15:18
Deanin
Рет қаралды 2,6 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН