News for hackers. Stuff that matters.
Re:Rails 4.0: PATCH will replace PUT as the primary HTTP met... by apike on Saturday February 25, 2012 @11:35PM (#3634838)
The concern isn't simply that there will be Rails programmers in K-12 that don't know how to override an HTTP method. The concern is that when K-12 users are using Rails 4 apps (that may or may not be K-12 specific) they may fail in bizarre ways that are hard to troubleshoot.
Re:Rails 4.0: PATCH will replace PUT as the primary HTTP met... by lparry on Sunday February 26, 2012 @02:55AM (#3635110)
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.
Re:Rails 4.0: PATCH will replace PUT as the primary HTTP met... by justincormack on Sunday February 26, 2012 @04:07AM (#3635204)
That's not true xmlhttprequest should support all methods but there are some quirks eg see http://www.mnot.net/javascript/xmlhttprequest/ to test though that does not cover PATCH.
Re:Rails 4.0: PATCH will replace PUT as the primary HTTP met... by lparry on Sunday February 26, 2012 @04:43AM (#3635241)
I stand corrected, I hadn't thought about js requests
Re:Rails 4.0: PATCH will replace PUT as the primary HTTP met... by SystemOut on Sunday February 26, 2012 @08:46AM (#3635603)
This was more my point that I didn't get across correctly. When apps fail due to weird proxy issues they are incredibly hard to figure out and almost impossible to QA correctly for without a huge budget. And if this causes it, sure the Rails programmer might know how to solve it once they actually realize why it's failing. The why is the harder part.