28 Feb '12, 11am

PATCH misunderstood (again)

, update_attributes() is no longer adequate for both. We need a method that enforces complete replacement of the resource. I read Jose’s objections concerning mapping 1:1 between the HTTP action and the underlying model data, but if you’re going to support the verb and not encourage the behavior, then what’s the point? Standards-compliance in name-only? To speak more directly to his concern, so what if you’re a limited-access User and can’t completely replace the object? The ‘replace’ action should fail and return an appropriate response. It shouldn’t be any different than the way PUT is usually handled now in Rails apps, which is if you don’t own the resource your update request will probably fail. So, here’s a +1 for a replace_attributes() method.

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

Tweets

Edge Rails: PATCH is the new primary HTTP metho...

weblog.rubyonrails.org 26 Feb '12, 1am

Edge Rails: PATCH is the new primary HTTP method for updates Posted by fxn February 26, 2012 @ 01:54 AM What is PATCH? The...

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...

Ruby on Rails Database Sharding: A Quick Primer...

engineyard.com 28 Feb '12, 3am

Sharding is usually the final strategy to reach for when scaling a Ruby on Rails app: caching, offloading, and data segmen...

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...

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...

Brew Method: The Chemex

Brew Method: The Chemex

dearcoffeeiloveyou.com 28 Feb '12, 11am

Apart from the design itself and the quality of coffee it makes, I also like the Chemex for its ease of use. In regards to...

Go-powered web-services with Rails

rubyflow.com 28 Feb '12, 1am

Go-powered web-services with Rails Posted by nu7hatch on February 28, 2012 — 0 comments Hey folks, my new blog post about ...

@merbist done! Great post.

merbist.com 29 Feb '12, 5pm

Ruby on Rails undisputedly changed the way web frameworks are designed. Rails became a reference when it comes to leveragi...

What's New in Edge Rails #12 - A quiet week.

afreshcup.com 12 Mar '12, 11am

is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the univer...

Huh, had no idea instance_values was Rails and ...

apidock.com 02 Mar '12, 4pm

Returns a hash that maps instance variable names without “@” to their corresponding values. Keys are strings both in