{"action":"opened","number":26555,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/26555","id":85943581,"html_url":"https://github.com/rails/rails/pull/26555","diff_url":"https://github.com/rails/rails/pull/26555.diff","patch_url":"https://github.com/rails/rails/pull/26555.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/26555","number":26555,"state":"open","locked":false,"title":"Show an \"unmatched constraints\" error when params fail to match constraints","user":{"login":"chriscarter90","id":1398210,"avatar_url":"https://avatars.githubusercontent.com/u/1398210?v=3","gravatar_id":"","url":"https://api.github.com/users/chriscarter90","html_url":"https://github.com/chriscarter90","followers_url":"https://api.github.com/users/chriscarter90/followers","following_url":"https://api.github.com/users/chriscarter90/following{/other_user}","gists_url":"https://api.github.com/users/chriscarter90/gists{/gist_id}","starred_url":"https://api.github.com/users/chriscarter90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriscarter90/subscriptions","organizations_url":"https://api.github.com/users/chriscarter90/orgs","repos_url":"https://api.github.com/users/chriscarter90/repos","events_url":"https://api.github.com/users/chriscarter90/events{/privacy}","received_events_url":"https://api.github.com/users/chriscarter90/received_events","type":"User","site_admin":false},"body":"### Summary\r\nAddresses issue #26470.\r\n\r\nCurrently a misleading \"missing required keys\" error is thrown when a param\r\nfails to match the constraints of a particular route. This PR ensures that\r\nthese params are recognised as unmatching rather than missing.\r\n\r\n### Other Information\r\n\r\nNote: this means that a different error message will be provided between\r\noptimized and non-optimized path helpers, due to the fact that the former does\r\nnot check constraints when matching routes.","created_at":"2016-09-20T09:52:12Z","updated_at":"2016-09-20T09:52:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c66fbebcd436c4b79967a34635f7280649cbf24","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/26555/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/26555/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/26555/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/87b00f342bce3efb0effff1b0ef304c64e4293a2","head":{"label":"chriscarter90:unmatched-constraint-routing-messages","ref":"unmatched-constraint-routing-messages","sha":"87b00f342bce3efb0effff1b0ef304c64e4293a2","user":{"login":"chriscarter90","id":1398210,"avatar_url":"https://avatars.githubusercontent.com/u/1398210?v=3","gravatar_id":"","url":"https://api.github.com/users/chriscarter90","html_url":"https://github.com/chriscarter90","followers_url":"https://api.github.com/users/chriscarter90/followers","following_url":"https://api.github.com/users/chriscarter90/following{/other_user}","gists_url":"https://api.github.com/users/chriscarter90/gists{/gist_id}","starred_url":"https://api.github.com/users/chriscarter90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriscarter90/subscriptions","organizations_url":"https://api.github.com/users/chriscarter90/orgs","repos_url":"https://api.github.com/users/chriscarter90/repos","events_url":"https://api.github.com/users/chriscarter90/events{/privacy}","received_events_url":"https://api.github.com/users/chriscarter90/received_events","type":"User","site_admin":false},"repo":{"id":68215043,"name":"rails","full_name":"chriscarter90/rails","owner":{"login":"chriscarter90","id":1398210,"avatar_url":"https://avatars.githubusercontent.com/u/1398210?v=3","gravatar_id":"","url":"https://api.github.com/users/chriscarter90","html_url":"https://github.com/chriscarter90","followers_url":"https://api.github.com/users/chriscarter90/followers","following_url":"https://api.github.com/users/chriscarter90/following{/other_user}","gists_url":"https://api.github.com/users/chriscarter90/gists{/gist_id}","starred_url":"https://api.github.com/users/chriscarter90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriscarter90/subscriptions","organizations_url":"https://api.github.com/users/chriscarter90/orgs","repos_url":"https://api.github.com/users/chriscarter90/repos","events_url":"https://api.github.com/users/chriscarter90/events{/privacy}","received_events_url":"https://api.github.com/users/chriscarter90/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chriscarter90/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/chriscarter90/rails","forks_url":"https://api.github.com/repos/chriscarter90/rails/forks","keys_url":"https://api.github.com/repos/chriscarter90/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chriscarter90/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chriscarter90/rails/teams","hooks_url":"https://api.github.com/repos/chriscarter90/rails/hooks","issue_events_url":"https://api.github.com/repos/chriscarter90/rails/issues/events{/number}","events_url":"https://api.github.com/repos/chriscarter90/rails/events","assignees_url":"https://api.github.com/repos/chriscarter90/rails/assignees{/user}","branches_url":"https://api.github.com/repos/chriscarter90/rails/branches{/branch}","tags_url":"https://api.github.com/repos/chriscarter90/rails/tags","blobs_url":"https://api.github.com/repos/chriscarter90/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chriscarter90/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chriscarter90/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/chriscarter90/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chriscarter90/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/chriscarter90/rails/languages","stargazers_url":"https://api.github.com/repos/chriscarter90/rails/stargazers","contributors_url":"https://api.github.com/repos/chriscarter90/rails/contributors","subscribers_url":"https://api.github.com/repos/chriscarter90/rails/subscribers","subscription_url":"https://api.github.com/repos/chriscarter90/rails/subscription","commits_url":"https://api.github.com/repos/chriscarter90/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/chriscarter90/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/chriscarter90/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/chriscarter90/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/chriscarter90/rails/contents/{+path}","compare_url":"https://api.github.com/repos/chriscarter90/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chriscarter90/rails/merges","archive_url":"https://api.github.com/repos/chriscarter90/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chriscarter90/rails/downloads","issues_url":"https://api.github.com/repos/chriscarter90/rails/issues{/number}","pulls_url":"https://api.github.com/repos/chriscarter90/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/chriscarter90/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/chriscarter90/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chriscarter90/rails/labels{/name}","releases_url":"https://api.github.com/repos/chriscarter90/rails/releases{/id}","deployments_url":"https://api.github.com/repos/chriscarter90/rails/deployments","created_at":"2016-09-14T14:48:36Z","updated_at":"2016-09-14T14:49:40Z","pushed_at":"2016-09-20T09:50:11Z","git_url":"git://github.com/chriscarter90/rails.git","ssh_url":"git@github.com:chriscarter90/rails.git","clone_url":"https://github.com/chriscarter90/rails.git","svn_url":"https://github.com/chriscarter90/rails","homepage":"http://rubyonrails.org","size":347932,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rails:master","ref":"master","sha":"8150c1260edb48c03dd686c0a74feee7d43c5479","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","deployments_url":"https://api.github.com/repos/rails/rails/deployments","created_at":"2008-04-11T02:19:47Z","updated_at":"2016-09-20T09:15:25Z","pushed_at":"2016-09-20T09:52:12Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":346980,"stargazers_count":32811,"watchers_count":32811,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13319,"mirror_url":null,"open_issues_count":1179,"forks":13319,"open_issues":1179,"watchers":32811,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/26555"},"html":{"href":"https://github.com/rails/rails/pull/26555"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/26555"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/26555/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/26555/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/26555/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/87b00f342bce3efb0effff1b0ef304c64e4293a2"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":27,"deletions":12,"changed_files":5}}
{"actor":{"display_login":"chriscarter90"}}