RESTful Rails
February 19, 2006
How did I miss this one back in November? This article by Matt Biddulph explains how to expose your Ruby on Rails model classes as RESTful resources — using Ruby’s metaprogramming support, you end up with adding one line for each resource:
class NewsController < ApplicationController
rest_resource :item
rest_resource :category
end
Very cool.
About
This page contains a single entry from Stefan Tilkov's Random Stuff posted on February 19, 2006 1:07 AM. The previous post in this blog was Here we go again: SOAP vs. REST. The next post in this blog is Apple to Adopt Windows? Dvorak is Mad. Many more can be found on the main index page or by looking through the archives.
