the actual framework for perfectionist with deadlines. this just crazy chris🔥
@axelb4234 жыл бұрын
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Ай бұрын
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
@TonyMessias4 жыл бұрын
This is gold. Thank you!
@cjreeve793 жыл бұрын
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 ```
@dc3662 жыл бұрын
@@DevBishwasBh yes this should work
@josehayimalves4 жыл бұрын
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?