Log in

No account? Create an account

Previous Entry | Next Entry

assert @rails == :shiny

Zow. I'm trying to write a RESTful service that ingests metadata about a video story. It turns out that Rails (at least as of 1.2.3) has a scaffold_resource generator script that will write a RESTful CRUD service for you for an entity that you can specify right there on the command line, including a UI scaffolding, the service, and a Test::Unit test that verifies that everything is hooked up correctly. It even understands irregular plurals like "story", which it pluralizes to "stories."

Update: Well, okay, perhaps not quite as shiny -- the UI on it is just another set of URIs added to the service, and not a separate client that calls the service through its interface. But still....