How do you send a request with the “DELETE” HTTP verb?

后端 未结 4 1199
温柔的废话
温柔的废话 2020-12-29 00:09

I\'d like to create a link in a view within a Rails application that does this...

DELETE /sessions

How would I do that.

Added compl

4条回答
  •  一个人的身影
    2020-12-29 00:47

    Correct me if I'm wrong, but I believe you can only send POST and GET requests with a browser (in HTML).

提交回复
热议问题