Thursday, June 29, 2006

Ruby on Rails just keeps getting cooler

DHH's latest extensions to Rails take advantage of the CRUD nature of the HTTP protocol to make URLs more powerful. A recent extention to the routing system allows you to base your rules on the HTTP method {GET, POST, PUT, DELETE} aswell as the url of the request. This opens up the possibility of calling several different controller methods from the same URL.



This has several beneficial results.

Check out DHH's slides for some more info.

Note: Most proxy servers don't handle Put and Delete methods correctly, so DHH has put in a work around using Post and some hidden form fields.

No comments:

GitHub Projects