REST & ActiveResource

Posted by ryan
at 10:09 AM on Wednesday, March 14, 2007

See here from some syntactical changes that occurred after this post was published

I gave a little chat last night at the Central Virginia Ruby Enthusiast’s Group – otherwise known as the Richmond Ruby Brigade – about REST, ActiveResource and how to build client services from the marriage of the two.

It was a really good group and I’d encourage anybody in the central virginia area to go check them out if they get the chance. It sounds like they’ve got some good speakers lined up in the next few meetings to make it worth your while (and they had free pizza last night – what a grade-A operation!)

For those that are interested, here’s the PDF version of my presentation. As you can imagine much of the value is lost without having the dialogue to accompany the presentation, but I think it somewhat stands on its own. Most of the examples are drawn from my ongoing work on ContactsAPI – a site meant to further the adoption and education of ActiveResource and REST in general. Check it out if you have the time, but again, it’s a work in progress.

tags: ruby, rubyonrails, cvreg

Comments

Leave a response

  1. Matthijs LangenbergMarch 14, 2007 @ 11:31 AM

    Thanks for putting your PDF online. I’ve been toying around with ARes for some time now and it’s really cool although it still has some rough edges.

  2. Jamie Orchard-HaysMarch 14, 2007 @ 11:48 AM

    Ryan, thanks for the presentation last night. I was just recommending this blog to someone and didn’t know this was your site until I came back to get the address. Thanks for the blog and the presentation.

    Jamie

  3. Dan MillironMarch 14, 2007 @ 02:26 PM

    Nice! I appreciate the intuitive organization and examples!

  4. RyanMarch 14, 2007 @ 08:07 PM

    No problem Jamie, I enjoyed giving the talk and meeting you.

  5. AnandMarch 16, 2007 @ 01:09 PM

    Thanks for the pdf, it’s great.

    FYI: This site: http://contactsapi.com/ is giving nothing but 404’s.

  6. Ryan DaigleMarch 16, 2007 @ 09:45 PM

    Hey Anand, I fixed ContactsAPI now – I fiddled with the apache config to fix another addressing issue and bjorked the main URL. Bad Ryan, bad.

    Thanks for the heads up.

  7. davidMarch 29, 2007 @ 03:08 PM

    pdf’s link is broken ?

  8. RyanMarch 30, 2007 @ 09:56 PM

    @david – the link is working for me – give it a go again?

  9. JeremyApril 03, 2007 @ 08:00 PM

    Any idea on a plugin or backport for those of us building rails stable applications? the deprecation hollow out of trunk is making things really hairy in the office.

  10. RyanApril 04, 2007 @ 07:55 AM

    No word, Jeremy – but a patch wouldn’t be difficult. Feel like contributing?

  11. ElliottApril 11, 2007 @ 07:21 PM

    Hi Ryan,

    I’ve been trying to develop my own REST api with AR. I was eager to see how you did error handling for failed attempts at creating an object in the controller. I cant get mine to work correctly. I’m lost in a jungle of

    “Net::HTTPBadResponse: wrong header line format” or @object.errors.full_messages []

    I can get these requests to work with CURL

    Would you mind posting one of your controllers?

  12. Paul.bOctober 04, 2007 @ 10:56 AM

    Just downloaded the pdf. Thanks!