Susan Davis (futabachan) wrote,
Susan Davis

  • Location:
  • Mood:
  • Music:

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....
Tags: geek, ruby, work

  • Plenary update

    Wow, it's been a while since I've updated this. Most of the rest of the naginata folks in Toronto use Facebook, so I've been dragged kicking and…

  • Off to Japan

    I'm off to Japan for two weeks as of the first thing Thursday morning. I'll be competing in the World Naginata Championships, and participating in…

  • Thanks, everyone.

    Thanks, everyone, for your birthday wishes. It's been a rough year, and a particularly rough month, and I feel like I've made a complete hash of the…

  • Post a new comment


    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.