4 ms·
It's not an issue because web browsers only support GET and POST. Rails works around this by including a hidden field "_method" which contains the method the se
by lparry 15y ago
It's not an issue because web browsers only support GET and POST. Rails works around this by including a hidden field "_method" which contains the method the server should treat the request as.
- justincormack 15y agoThat's not true xmlhttprequest should support all methods but there are some quirks eg see http://www.mnot.net/javascript/xmlhttprequest/ http://www.mnot.net/javascript/xmlhttprequest/ to test though that does not cover PATCH.
- lparry 15y agoI stand corrected, I hadn't thought about js requests