the actual framework for perfectionist with deadlines. this just crazy chris🔥
@axelb4233 жыл бұрын
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.
@TonyMessias3 жыл бұрын
This is gold. Thank you!
@josehayimalves3 жыл бұрын
Great one ☝️
@SS-li3ft2 жыл бұрын
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?
@cjreeve792 жыл бұрын
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_...".
@DevBishwasBh2 жыл бұрын
Yes, try this... ``` def dom_id_for_records *records records.map do |record| dom_id record end.join "_" end ```