Ruby

http://s.erious.ly

Posts tagged "REST"

Edge Rails: PATCH is the new primary HTTP method for updates

What is PATCH? The HTTP method PUT means resource creation or replacement at some given URL. Think files, for example. If you upload a file to S3 at some URL, you want either to create the file at that URL or replace an existing file if...

May 5, 2010: Aaiieeee

Book Status Working toward beta 2, which will probably come out early next week. It’ll include chapters on integration testing, and webrat/capybara, and maybe the Cucumber chapter, depending on if I finish the redo. Also, the setup appendix with at least partial Rails 3 info — still sticking on how best to integrate the user...

Taking Things Too Far: REST

I’m going to put up a few posts based on a talk I gave at RailsConf ‘09 in Vegas and RailsWayCon in Berlin. Sorry for the delay in updating but I wanted to deliver the talks before posting here.

There’s a common pattern I see when working on code-reviews with ActionRails or...

HTTParty goes foreign

Just a quick post to get share something I was tinkering with this evening.

I came across this post by Gerald Bauer, which shows you how to use the Google Translation API with Ruby via Net::HTTP. I thought I’d play with the service with HTTParty.

class GoogleApi
  include HTTParty
  base_uri 'ajax.googleapis.com'

 ...

The HTTParty has just begun

After releasing the new RubyURL API, I decided that it was time to look around at libraries to interact with it. I came across a new Ruby gem from John Nunemaker named, HTTParty, which aims to make it easy to talk to XML and JSON-based web services. Be sure to...

The new RubyURL API

We’ve just deployed the initial version of an API for RubyURL. It makes it really easy to create RubyURLs and is now open to the public. Should it end up being abused, we’ll consider introducing an API KEY for authenticating and tracking abuse.

In the meantime, you can now start to use the...