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. ;)
@seriouslyiknowhowtoread5 ай бұрын
DOMNodeInserted is deprecated use Connected and Disconnected Callbacks ( stimulus docs )
@JimmyHsiao-z1l Жыл бұрын
The event that triggers the dom to scroll down really saves me! Thank you
@thedhinals49682 жыл бұрын
the great tutor ruby on rails ever , thank you very munch sir 😊😊
@ZockaRocka2 жыл бұрын
On the last step, implementing the resetScroll: Why didnt you need to put messages as an argument of the function?
@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 Жыл бұрын
😂 the way he spelt `DOMNodeInserted` ❤
@natashakhan68452 жыл бұрын
your are great sir and thanks for every thing
@basemshamseldin89592 жыл бұрын
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
@Deanin11 ай бұрын
hey, where's the source code??
@proxikal2 жыл бұрын
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!