26 Feb '12, 1am

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

Edge Rails: PATCH is the new primary HTTP method for updates Posted by fxn February 26, 2012 @ 01:54 AM 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 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 the 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 ro...

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

Tweets

PATCH misunderstood (again)

weblog.rubyonrails.org 28 Feb '12, 11am

, update_attributes() is no longer adequate for both. We need a method that enforces complete replacement of the resource....

What's New in Edge Rails #10

afreshcup.com 27 Feb '12, 11am

Monday, February 27, 2012 at 5:58AM Week of February 19-February 25, 2012 The biggest news this week comes on the REST fro...

Nuby on Rails | Ruby on Rails for Newbies

Nuby on Rails | Ruby on Rails for Newbies

nubyonrails.com 26 Feb '12, 6pm

One skill that is important is being able to respond to change. I frequently think back to a quote I saw in a skateboardin...

@goonjja чувак, ты работаешь в NAUMEN и пишешь ...

guides.rubyonrails.org 26 Feb '12, 8pm

In specific cases, it would make sense to set the locale from client-supplied information, i.e. not from the URL . This in...

A painless method for breaking up a rails app (...

pivotallabs.com 24 Feb '12, 7am

You might call this post Part 2 in a component based architecture series. The first post describes a solution for better o...

if you're a rails developer, you really need to...

api.rubyonrails.org 27 Feb '12, 1pm

macro: Mass-assignment will only set attributes in this list, to assign to the rest of attributes you can use direct write...

Feedback needed for the Rails Engines Guide:

edgeguides.rubyonrails.org 27 Feb '12, 12am

invoke active_record create db/migrate/[timestamp]_create_blorgh_posts.rb create app/models/blorgh/post.rb invoke test_uni...

A Fresh Cup - Home - What's New in Edge Rails #11

afreshcup.com 05 Mar '12, 11am

Monday, March 5, 2012 at 5:51AM Week of February 26-March 3, 2012 The big news this week is the switch to requiring whitel...

Bundler

gembundler.com 26 Feb '12, 7pm

Run an executable that comes with a gem in your bundle $ bundle exec rspec spec/models In some cases, running executables ...

my dads in this lololololol #ledge

blackcabsessions.com 29 Feb '12, 9pm

Tune into channel 4 at 12.10am to see Black Cab Sessions' new programme http://t.co/EKLgvSod Posted 9 minutes ago http://t...

@CoffeeCommon Updates Via @CoffeeCommon

@CoffeeCommon Updates Via @CoffeeCommon

sprudge.com 29 Feb '12, 11pm

Coffee Common is happening right now as we live and breathe, providing exemplary service and education to the muckity-muck...

Rails for Designers:

glu.ttono.us 01 Mar '12, 12am

Kevin, It’s great to see that you are from San Diego, as am I. I find rails very interesting compared to my normal mode of...

Ruby on Rails developer: 180 from Central Afric...

workingwithrails.com 27 Feb '12, 1am

Working With Rails - sponsored and created by DSC Disclaimer: This is a publicly accessible database. The views and opinio...