Open
Description
If Post
has many Comment
s, and you try to sidepost disassociate a comment, it will silently fail. Instead, we should raise an expressive error message.
The issue is that Rails 5 defaults belongs_to
to be required and will fail validation if the foreign key is nil. So we attempt to disassociate these objects, but no DB update is made. This error should be a 422 validation error but since these objects are already disassociate in memory we never know to do so.
Metadata
Metadata
Assignees
Labels
No labels