class CommentSerializer < ActiveModel::Serializer
  attributes :id, :content
end

class CommentSerializer < ActiveModel::Serializer
  attributes :id, :content, :resource_id
  belongs_to :user, serializer: CommentUserSerializer
end

Add resource_id and user to Comments Serializer.:
Add resource_id and user to Comments Serializer.:
