{"action":"reopened","number":59,"pull_request":{"url":"https://api.github.com/repos/Shopify/turbograft/pulls/59","id":27383383,"html_url":"https://github.com/Shopify/turbograft/pull/59","diff_url":"https://github.com/Shopify/turbograft/pull/59.diff","patch_url":"https://github.com/Shopify/turbograft/pull/59.patch","issue_url":"https://api.github.com/repos/Shopify/turbograft/issues/59","number":59,"state":"open","locked":false,"title":"Don't automatically add _method to FormData","user":{"login":"DrewMartin","id":1687807,"avatar_url":"https://avatars.githubusercontent.com/u/1687807?v=3","gravatar_id":"","url":"https://api.github.com/users/DrewMartin","html_url":"https://github.com/DrewMartin","followers_url":"https://api.github.com/users/DrewMartin/followers","following_url":"https://api.github.com/users/DrewMartin/following{/other_user}","gists_url":"https://api.github.com/users/DrewMartin/gists{/gist_id}","starred_url":"https://api.github.com/users/DrewMartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrewMartin/subscriptions","organizations_url":"https://api.github.com/users/DrewMartin/orgs","repos_url":"https://api.github.com/users/DrewMartin/repos","events_url":"https://api.github.com/users/DrewMartin/events{/privacy}","received_events_url":"https://api.github.com/users/DrewMartin/received_events","type":"User","site_admin":false},"body":"This will let us properly https://github.com/Shopify/shopify/issues/36350\r\n\r\nWe can't set `tg-remote` on the products form because the form's `method=\"POST\"` attribute that rails is setting overwrites the `method=\"PATCH\"` hidden field within the form. We should just not set the submission type based on form attributes, and instead use a `_method` hidden field. Ideally we'd look at what's already in `formData` but we can't because FormData is stored in native code and we don't have access.\r\n\r\n@qq99 @celsodantas \r\n","created_at":"2015-01-14T21:05:31Z","updated_at":"2015-01-14T21:22:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ff4aa0a4c7f1f342f4be5cd79f1f0f604410842","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Shopify/turbograft/pulls/59/commits","review_comments_url":"https://api.github.com/repos/Shopify/turbograft/pulls/59/comments","review_comment_url":"https://api.github.com/repos/Shopify/turbograft/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Shopify/turbograft/issues/59/comments","statuses_url":"https://api.github.com/repos/Shopify/turbograft/statuses/b6fbc9c3ff74a309d1a220feff1c101e46dee241","head":{"label":"Shopify:no-automatic-form-method","ref":"no-automatic-form-method","sha":"b6fbc9c3ff74a309d1a220feff1c101e46dee241","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":23920094,"name":"turbograft","full_name":"Shopify/turbograft","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/turbograft","description":"Hard fork of turbolinks, adding partial page replacement strategies, and utilities.","fork":false,"url":"https://api.github.com/repos/Shopify/turbograft","forks_url":"https://api.github.com/repos/Shopify/turbograft/forks","keys_url":"https://api.github.com/repos/Shopify/turbograft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/turbograft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/turbograft/teams","hooks_url":"https://api.github.com/repos/Shopify/turbograft/hooks","issue_events_url":"https://api.github.com/repos/Shopify/turbograft/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/turbograft/events","assignees_url":"https://api.github.com/repos/Shopify/turbograft/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/turbograft/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/turbograft/tags","blobs_url":"https://api.github.com/repos/Shopify/turbograft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/turbograft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/turbograft/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/turbograft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/turbograft/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/turbograft/languages","stargazers_url":"https://api.github.com/repos/Shopify/turbograft/stargazers","contributors_url":"https://api.github.com/repos/Shopify/turbograft/contributors","subscribers_url":"https://api.github.com/repos/Shopify/turbograft/subscribers","subscription_url":"https://api.github.com/repos/Shopify/turbograft/subscription","commits_url":"https://api.github.com/repos/Shopify/turbograft/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/turbograft/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/turbograft/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/turbograft/issues/comments/{number}","contents_url":"https://api.github.com/repos/Shopify/turbograft/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/turbograft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/turbograft/merges","archive_url":"https://api.github.com/repos/Shopify/turbograft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/turbograft/downloads","issues_url":"https://api.github.com/repos/Shopify/turbograft/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/turbograft/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/turbograft/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/turbograft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/turbograft/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/turbograft/releases{/id}","created_at":"2014-09-11T13:47:46Z","updated_at":"2015-01-14T15:46:47Z","pushed_at":"2015-01-14T21:02:56Z","git_url":"git://github.com/Shopify/turbograft.git","ssh_url":"git@github.com:Shopify/turbograft.git","clone_url":"https://github.com/Shopify/turbograft.git","svn_url":"https://github.com/Shopify/turbograft","homepage":"","size":2123,"stargazers_count":39,"watchers_count":39,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":39,"default_branch":"master"}},"base":{"label":"Shopify:master","ref":"master","sha":"8023aff0585bf35457707f393fda521d26c1b4e8","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":23920094,"name":"turbograft","full_name":"Shopify/turbograft","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/turbograft","description":"Hard fork of turbolinks, adding partial page replacement strategies, and utilities.","fork":false,"url":"https://api.github.com/repos/Shopify/turbograft","forks_url":"https://api.github.com/repos/Shopify/turbograft/forks","keys_url":"https://api.github.com/repos/Shopify/turbograft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/turbograft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/turbograft/teams","hooks_url":"https://api.github.com/repos/Shopify/turbograft/hooks","issue_events_url":"https://api.github.com/repos/Shopify/turbograft/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/turbograft/events","assignees_url":"https://api.github.com/repos/Shopify/turbograft/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/turbograft/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/turbograft/tags","blobs_url":"https://api.github.com/repos/Shopify/turbograft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/turbograft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/turbograft/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/turbograft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/turbograft/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/turbograft/languages","stargazers_url":"https://api.github.com/repos/Shopify/turbograft/stargazers","contributors_url":"https://api.github.com/repos/Shopify/turbograft/contributors","subscribers_url":"https://api.github.com/repos/Shopify/turbograft/subscribers","subscription_url":"https://api.github.com/repos/Shopify/turbograft/subscription","commits_url":"https://api.github.com/repos/Shopify/turbograft/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/turbograft/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/turbograft/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/turbograft/issues/comments/{number}","contents_url":"https://api.github.com/repos/Shopify/turbograft/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/turbograft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/turbograft/merges","archive_url":"https://api.github.com/repos/Shopify/turbograft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/turbograft/downloads","issues_url":"https://api.github.com/repos/Shopify/turbograft/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/turbograft/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/turbograft/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/turbograft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/turbograft/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/turbograft/releases{/id}","created_at":"2014-09-11T13:47:46Z","updated_at":"2015-01-14T15:46:47Z","pushed_at":"2015-01-14T21:02:56Z","git_url":"git://github.com/Shopify/turbograft.git","ssh_url":"git@github.com:Shopify/turbograft.git","clone_url":"https://github.com/Shopify/turbograft.git","svn_url":"https://github.com/Shopify/turbograft","homepage":"","size":2123,"stargazers_count":39,"watchers_count":39,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Shopify/turbograft/pulls/59"},"html":{"href":"https://github.com/Shopify/turbograft/pull/59"},"issue":{"href":"https://api.github.com/repos/Shopify/turbograft/issues/59"},"comments":{"href":"https://api.github.com/repos/Shopify/turbograft/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/Shopify/turbograft/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/Shopify/turbograft/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Shopify/turbograft/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/Shopify/turbograft/statuses/b6fbc9c3ff74a309d1a220feff1c101e46dee241"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":5,"review_comments":0,"commits":1,"additions":1,"deletions":3,"changed_files":1}}