Realtime Nested Comments in Rails with Hotwire & Turbo.js - Part 1

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

GoRails

GoRails

Күн бұрын

Пікірлер: 9
@kwhandy
@kwhandy 3 жыл бұрын
the actual framework for perfectionist with deadlines. this just crazy chris🔥
@axelb423
@axelb423 3 жыл бұрын
Thanks, for the video, but how to prevent the scroll effect when a content is added/removed/edited in live? If I have 10 posts and reading the post #5, if a post #11 is added by a user, all post scroll down during and break the reading because the new post has an impact on the scrollbar and page height.
@TonyMessias
@TonyMessias 3 жыл бұрын
This is gold. Thank you!
@josehayimalves
@josehayimalves 3 жыл бұрын
Great one ☝️
@SS-li3ft
@SS-li3ft 2 жыл бұрын
It's an awesome video, i tried this way and the comments will render automatically when the comment is created , but the edit and delete icon will render only after a refresh, i don't know why, its says post_id is missing for edit and delete icon. do you have any idea about this?
@cjreeve79
@cjreeve79 2 жыл бұрын
10:16 I think `dom_id(record, prefix: prefix)` should be `dom_id(record, prefix)`. With a prefix of "xxx" the former prefixes with "{:prefix=>\"xxx\"_..." and the latter with "xxx_...".
@DevBishwasBh
@DevBishwasBh 2 жыл бұрын
Yes, try this... ``` def dom_id_for_records *records records.map do |record| dom_id record end.join "_" end ```
@dc366
@dc366 Жыл бұрын
@@DevBishwasBh yes this should work
@dwieb
@dwieb 3 жыл бұрын
I love you lol
Dynamic Select Fields in Rails using Hotwire
19:46
GoRails
Рет қаралды 25 М.
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 17 МЛН
бабл ти гель для душа // Eva mash
01:00
EVA mash
Рет қаралды 9 МЛН
How To Use Import Maps with Rails
18:12
GoRails
Рет қаралды 1,4 М.
How to use Hotwire in Rails
24:26
GoRails
Рет қаралды 56 М.
Inline Editing with Turbo Frames in Rails
20:39
GoRails
Рет қаралды 14 М.
Nested Comments with Ruby on Rails
19:46
CJ Avilla (cjav_dev)
Рет қаралды 3,6 М.
How to use Devise with Hotwire & Turbo.js
11:54
GoRails
Рет қаралды 17 М.
Realtime partial page updates with Turbo Streams
22:33
CJ Avilla (cjav_dev)
Рет қаралды 9 М.
Rails 7: The Demo
34:15
David Heinemeier Hansson
Рет қаралды 109 М.
Hotwire Modals with ZERO JAVASCRIPT
6:39
Rapid Ruby
Рет қаралды 11 М.