Just did a deep dive into how to do conditional PUT (optimistic locking) in Rails. Short version: Rails has no support for ETags beyond GET.
-
-
-
Replying to @steveklabnik
@steveklabnik damn. I was kinda hoping your response would be to prove me wrong ;-)2 replies 0 retweets 0 likes -
Replying to @steveklabnik
@steveklabnik this is one of those things that once RubyTapas starts paying my bills, I would totally implement instead of whining about it.1 reply 0 retweets 0 likes -
Replying to @steveklabnik
@steveklabnik a starting point, FWIW: this algorithm should live somewhere more generally accessible: http://apidock.com/rails/ActionDispatch/Http/Cache/Response/etag%3D …2 replies 0 retweets 0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.