21 May '12, 3pm

Toca ir pensando en Rails 4 y en el método HTTP 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 there's one. That is PUT. Now let's say a web application has an Invoice model with a paid flag that indicates whether the invoice has been paid. How do you set that flag in a RESTful way? Submitting paid=1 via PUT to /invoices/:id does not conform to HTTP semantics, because such request would not be sending a complete representation of the invoice for replacement . With the constraints of the methods GET, POST, PUT, DELETE, the traditional answer is to define the paid flag of a given invoice to be a resource by itself. So, you define a route to be able to PUT paid=1 to /invoices/:id/paid . You have to do that because PUT does not allow partial updates to...

Full article: http://weblog.rubyonrails.org/2012/2/25/edge-rails-patch-...

Tweets

A Fresh Cup:What's New in Edge Rails #21

afreshcup.com 21 May '12, 11am

Monday, May 21, 2012 at 5:31AM Week of May 14 - May 20, 2012 In addition to the code changes below, I want to mention the ...

Rails Installer: Ruby and Rails on Windows in a Single, Easy Install:

Rails Installer: Ruby and Rails on Windows in a...

rubyinside.com 21 May '12, 6am

RailsInstaller is a new project from Wayne E Seguin (of RVM fame) that brings RubyInstaller -style simplicity to getting R...

Screencast: Easy Rails File Uploads using Ajax ...

railsinside.com 21 May '12, 8am

New to Rails 3? Check out the Ruby on Rails 3 Tutorial book and screencast. A book and screencast series showing you how t...

Adding watermarks, credits, badges and text ove...

rubyflow.com 22 May '12, 9am

Adding watermarks, credits, badges and text overlays to images in Ruby on Rails Posted by Cloudinary on May 22, 2012 — 0 c...

re-the last retweet (not enough rails devs): to...

blog.obiefernandez.com 20 May '12, 11am

This is a guest post by Rusty Zarse CTO of Search Discovery, spurred by a series of email conversations that we had regard...

Stick-On "Zio Patch" Diagnoses Irregular Heartbeat in Cardiac Patients

Stick-On "Zio Patch" Diagnoses Irregular Heartb...

ecouterre.com 22 May '12, 2pm

can help emergency-room patients avoid unnecessary follow-ups, according to a new study by Scripps Health . Developed by i...

method using qr codes (ready for twists) #qr

blackhatworld.com 27 May '12, 9am

ok guys - this method is still rumbling around and doing somersaults in my brain, so feel free to add twists, refine or tr...

What's New in Edge Rails #22: Week of May 21 - ...

afreshcup.com 28 May '12, 10am

In addition to the features I've called out below, there's still plenty of internal tinkering going on with Rails 4.0. Thi...

What’s New in Edge Rails #20: Week of May 7 – M...

afreshcup.com 14 May '12, 11am

As usual, I'm only pulling out the things that look most interesting to developers using Rails; there's a great deal of wo...

Yachting: French crew trims Spaniard's Ocean Race edge

Yachting: French crew trims Spaniard's Ocean Ra...

channelnewsasia.com 19 May '12, 10pm

MIAMI: France's Groupama cut Spanish yacht Telefonica's edge in the Volvo Ocean Race to only seven points on Saturday afte...