RESTful Rails Drops Semicolons
March 29, 2007
From the Rails changelog:
Dropped the use of ; as a separator of non-crud actions on resources and went back to the vanilla slash. It was a neat idea, but lots of the non-crud actions turned out not to be RPC (as the ; was primarily intended to discourage), but legitimate sub-resources, like /parties/recent, which didn’t deserve the uglification of /parties;recent. Further more, the semicolon caused issues with caching and HTTP authentication in Safari. Just Not Worth It [DHH]
I actually liked the use of ;edit to get a form to edit something, but hey, it’s just URLs.
[via PragDave]
About
This page contains a single entry from Stefan Tilkov's Random Stuff posted on March 29, 2007 8:02 AM. The previous post in this blog was CAPTCHA. The next post in this blog is Metaprogramming JavaScript. Many more can be found on the main index page or by looking through the archives.
Comments
I liked ;edit too. But I hated ;recent and other sub-resources considerably more ;)
Posted by: DHH at March 29, 2007 6:06 PM | link
Fair enough.
Posted by: Stefan Tilkov at March 29, 2007 6:42 PM | link
