Home>
I want to check

I want to make the comment posting function asynchronous, but I want to know if the description of the open method part is as follows.

Routing

Prefix Verb URI Pattern Controller # Action
post_comments POST items /: item_id/comments comments #create

Code

XHR.open ("POST", `items/${itemId}/comments`, true);
Supplementary information (FW/tool version, etc.)

ruby 2.6.5
rails 6.0.3