June 28th, 2007


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....
  • Current Music
    project room cross talk
  • Tags
    , ,

A benefit of working down on the harbourfront

There's a little park right around the corner from our office, next to one of the island ferry terminals. It's a great spot to sit under a tree and eat a picnic lunch on a sunny day in the low 20s.

Oh, and Gandhi's makes great Roti. (Not that they're located anywhere near the harbourfront.)