Susan Davis (futabachan) wrote,
Susan Davis
futabachan

  • 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
Subscribe

  • "That's it! I'm moving to Canada!"

    I've heard quite a few American friends postulate moving to Canada if the Presidential election in the fall doesn't go their way. Amanda and I moved…

  • What we've been up to lately.

  • 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…

  • Post a new comment

    Error

    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.
  • 0 comments