-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Comments as commentable #109
Comments
For debug purposes, verify that both comments are saved first.
|
Same result
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried adding Comments model as a commentable type in order to implement a reply feature. As it looked pretty straight forward to do something like this but I am not able to set the parent of the newly created comment.
can you please tell me what could be a better way to implement replies.
Adding code example below:
> a = Comment.build_from(Comment.first, User.second.id, "Testing replies")
> a.save!
> a.move_to_child_of(Comment.first)
last line of code results in error:
The text was updated successfully, but these errors were encountered: