How do I create a reply comment system?
Can anyone point me in the correct direction?
I have created a standard comment system which was copied from the GoRails episode.
Thank you ahead of time.
Just to make sure I understand your goals, you want to integrate a Comment + Reply model(s) integration with a Rails app? Are you using AJAX?
I'd be glad to assist, just need a little more info. Can you reference which GoRails episode you're
talking about?
I'm using AJAX.
Yeah, this episode: https://gorails.com/episodes/comments-with-polymorphic-associations
Thank you so much Ryan.
Have you successfully re-created the Comments/Modules/Models that Chris went over in the video? Have you successfully integrated AJAX thus far? Once you understand the workflow that was followed you can simply extend it using another instance(s) of poly associations or simple has_many/belong_to associations.
I will update a git repo with an example this weekend if you need something to look through. In the meantime, if you've got a repo feel free to link to it and I will give it a look.
We can get you squared away.
I guess that part that I'm having a difficult time understanding how to accomplish is how to create a Reddit style comment system. So for example, if I reply to you then my comments will show in the view under yours and to the right a little bit. Then you respond and it's under my comment and a little more to the right, ect.
Do you understand how to accomplish this?
hey chris tried to report the above posts as spam and got This gorails.com page can’t be foundNo web page was found for the web address: https://gorails.com/forum/how-do-i-create-a-reply-comment-system/forum_posts/11741/report
just an fyi
Very helpful information. I took your advice and everything started to work, I had a similar error
Hi Jake, you had made a comment system for one of our client.
If you are looking to outsource project, our team at techtix will be happy to help.
To create a reply commenting system, you will need to modify your existing comment system to include a parent-child relationship between comments.
Add a parent_comment_id column to your comments table. This column will store the ID of the parent comment that a reply is associated with.