{"issue":{"user":{"id":7035,"login":"dlee","url":"https://api.github.com/users/dlee","gravatar_id":"139de3f8c3d6ee008cdb3abd3da23908","avatar_url":"https://secure.gravatar.com/avatar/139de3f8c3d6ee008cdb3abd3da23908?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"title":"Patch verb","milestone":null,"created_at":"2011-05-11T01:21:23Z","labels":[],"state":"open","updated_at":"2011-12-20T20:42:11Z","id":880609,"html_url":"https://github.com/rails/rails/issues/505","closed_at":null,"pull_request":{"patch_url":"https://github.com/rails/rails/pull/505.patch","html_url":"https://github.com/rails/rails/pull/505","diff_url":"https://github.com/rails/rails/pull/505.diff"},"body":"*Updated: update forms default to PUT instead of PATCH for current apps. Defaults to PATCH for new apps.*\r\n\r\nPATCH is the correct HTML verb to map to the #update action. The semantics for\r\nPATCH allows for partial updates, whereas PUT requires a complete replacement.\r\n\r\nChanges:\r\n* adds the #patch verb to routes to detect PATCH requests\r\n* adds #patch? to Request\r\n* adds the PATCH -> update mapping in the #resource(s) routes.\r\n* changes default form helpers to prefer :patch instead of :put for updates *only for new apps*\r\n* changes documentation and comments to indicate the preference for PATCH\r\n\r\nThis change tries to maintain complete backwards compatibility by keeping the\r\noriginal PUT -> update mapping. Users using the #resource(s) routes should not\r\nnotice a change in behavior since both PUT and PATCH requests get mapped to\r\nupdate.","number":505,"url":"https://api.github.com/repos/rails/rails/issues/505","comments":132,"assignee":null},"comment":{"user":{"id":7035,"login":"dlee","url":"https://api.github.com/users/dlee","gravatar_id":"139de3f8c3d6ee008cdb3abd3da23908","avatar_url":"https://secure.gravatar.com/avatar/139de3f8c3d6ee008cdb3abd3da23908?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-20T20:42:11Z","updated_at":"2011-12-20T20:42:11Z","id":3224949,"body":"Rails 4 has been announced for the summer. How much PATCH support should we get in? There have been various proposals of how to support PATCH in Rails 4:\r\n\r\n* make PATCH and PUT both map to `update` and:\r\n  * make edit forms use PATCH by default and PUT by configuration opt-in\r\n  * make edit forms use PUT by default and PATCH by configuration opt-in\r\n* split `update` into different actions that map better to PUT and PATCH","url":"https://api.github.com/repos/rails/rails/issues/comments/3224949"},"action":"created"}