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

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

GoRails

GoRails

Күн бұрын

Пікірлер: 10
@kwhandy
@kwhandy 4 жыл бұрын
the actual framework for perfectionist with deadlines. this just crazy chris🔥
@axelb423
@axelb423 4 жыл бұрын
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.
@AlexandruVoinea-u5r
@AlexandruVoinea-u5r Ай бұрын
Sir it is not working at me, i dont understand why. I did exactly in the video, but it does not show me errors at all when i click on create comment, while not writing anything. I created the validation, and I looked in the terminal and it just creates comments when they have comments. I couldnt find the error, what could it be
@TonyMessias
@TonyMessias 4 жыл бұрын
This is gold. Thank you!
@cjreeve79
@cjreeve79 3 жыл бұрын
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 2 жыл бұрын
@@DevBishwasBh yes this should work
@josehayimalves
@josehayimalves 4 жыл бұрын
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?
@dwieb
@dwieb 4 жыл бұрын
I love you lol
Dynamic Select Fields in Rails using Hotwire
19:46
GoRails
Рет қаралды 25 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Nested Comments with Ruby on Rails
19:46
CJ Avilla (cjav_dev)
Рет қаралды 3,6 М.
Hotwire Demystified - Jamie Gaskins
34:18
Ruby Central
Рет қаралды 11 М.
Realtime partial page updates with Turbo Streams
22:33
CJ Avilla (cjav_dev)
Рет қаралды 9 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
Real-Time Partial Updates in Ruby on Rails using hotwire-rails
16:17
Exploring Rails 7, Hotwire and AnyCable speedy streams
38:19
Evil Martians
Рет қаралды 8 М.