{"action":"closed","number":65,"pull_request":{"url":"https://api.github.com/repos/jpmcgrath/shortener/pulls/65","id":64988533,"html_url":"https://github.com/jpmcgrath/shortener/pull/65","diff_url":"https://github.com/jpmcgrath/shortener/pull/65.diff","patch_url":"https://github.com/jpmcgrath/shortener/pull/65.patch","issue_url":"https://api.github.com/repos/jpmcgrath/shortener/issues/65","number":65,"state":"closed","locked":false,"title":"Use unique_key as route param","user":{"login":"pclalv","id":6750633,"avatar_url":"https://avatars.githubusercontent.com/u/6750633?v=3","gravatar_id":"","url":"https://api.github.com/users/pclalv","html_url":"https://github.com/pclalv","followers_url":"https://api.github.com/users/pclalv/followers","following_url":"https://api.github.com/users/pclalv/following{/other_user}","gists_url":"https://api.github.com/users/pclalv/gists{/gist_id}","starred_url":"https://api.github.com/users/pclalv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pclalv/subscriptions","organizations_url":"https://api.github.com/users/pclalv/orgs","repos_url":"https://api.github.com/users/pclalv/repos","events_url":"https://api.github.com/users/pclalv/events{/privacy}","received_events_url":"https://api.github.com/users/pclalv/received_events","type":"User","site_admin":false},"body":"For routes like this, `  get '/s/:id' => 'shortener/shortened_urls#show', :as => 'shortened_url'`, it'd be nice to be use url helpers like this: `shortened_url_path(shortened_url)`. As it stands, however, the only way to generate path is like this: `shortened_url_path(shortened_url.unique_key)`. ","created_at":"2016-04-01T18:49:51Z","updated_at":"2016-04-22T02:11:52Z","closed_at":"2016-04-22T02:11:52Z","merged_at":"2016-04-22T02:11:52Z","merge_commit_sha":"8b529dc3f592bdb3b6e53165bdc669d9eeb31133","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jpmcgrath/shortener/pulls/65/commits","review_comments_url":"https://api.github.com/repos/jpmcgrath/shortener/pulls/65/comments","review_comment_url":"https://api.github.com/repos/jpmcgrath/shortener/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jpmcgrath/shortener/issues/65/comments","statuses_url":"https://api.github.com/repos/jpmcgrath/shortener/statuses/25ccb1760beb73d52cdcc26ac5d1d3121f419918","head":{"label":"pclalv:use-to-param","ref":"use-to-param","sha":"25ccb1760beb73d52cdcc26ac5d1d3121f419918","user":{"login":"pclalv","id":6750633,"avatar_url":"https://avatars.githubusercontent.com/u/6750633?v=3","gravatar_id":"","url":"https://api.github.com/users/pclalv","html_url":"https://github.com/pclalv","followers_url":"https://api.github.com/users/pclalv/followers","following_url":"https://api.github.com/users/pclalv/following{/other_user}","gists_url":"https://api.github.com/users/pclalv/gists{/gist_id}","starred_url":"https://api.github.com/users/pclalv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pclalv/subscriptions","organizations_url":"https://api.github.com/users/pclalv/orgs","repos_url":"https://api.github.com/users/pclalv/repos","events_url":"https://api.github.com/users/pclalv/events{/privacy}","received_events_url":"https://api.github.com/users/pclalv/received_events","type":"User","site_admin":false},"repo":{"id":55254721,"name":"shortener","full_name":"pclalv/shortener","owner":{"login":"pclalv","id":6750633,"avatar_url":"https://avatars.githubusercontent.com/u/6750633?v=3","gravatar_id":"","url":"https://api.github.com/users/pclalv","html_url":"https://github.com/pclalv","followers_url":"https://api.github.com/users/pclalv/followers","following_url":"https://api.github.com/users/pclalv/following{/other_user}","gists_url":"https://api.github.com/users/pclalv/gists{/gist_id}","starred_url":"https://api.github.com/users/pclalv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pclalv/subscriptions","organizations_url":"https://api.github.com/users/pclalv/orgs","repos_url":"https://api.github.com/users/pclalv/repos","events_url":"https://api.github.com/users/pclalv/events{/privacy}","received_events_url":"https://api.github.com/users/pclalv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pclalv/shortener","description":"Shortener makes it easy to create shortened URLs for your rails application.","fork":true,"url":"https://api.github.com/repos/pclalv/shortener","forks_url":"https://api.github.com/repos/pclalv/shortener/forks","keys_url":"https://api.github.com/repos/pclalv/shortener/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pclalv/shortener/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pclalv/shortener/teams","hooks_url":"https://api.github.com/repos/pclalv/shortener/hooks","issue_events_url":"https://api.github.com/repos/pclalv/shortener/issues/events{/number}","events_url":"https://api.github.com/repos/pclalv/shortener/events","assignees_url":"https://api.github.com/repos/pclalv/shortener/assignees{/user}","branches_url":"https://api.github.com/repos/pclalv/shortener/branches{/branch}","tags_url":"https://api.github.com/repos/pclalv/shortener/tags","blobs_url":"https://api.github.com/repos/pclalv/shortener/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pclalv/shortener/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pclalv/shortener/git/refs{/sha}","trees_url":"https://api.github.com/repos/pclalv/shortener/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pclalv/shortener/statuses/{sha}","languages_url":"https://api.github.com/repos/pclalv/shortener/languages","stargazers_url":"https://api.github.com/repos/pclalv/shortener/stargazers","contributors_url":"https://api.github.com/repos/pclalv/shortener/contributors","subscribers_url":"https://api.github.com/repos/pclalv/shortener/subscribers","subscription_url":"https://api.github.com/repos/pclalv/shortener/subscription","commits_url":"https://api.github.com/repos/pclalv/shortener/commits{/sha}","git_commits_url":"https://api.github.com/repos/pclalv/shortener/git/commits{/sha}","comments_url":"https://api.github.com/repos/pclalv/shortener/comments{/number}","issue_comment_url":"https://api.github.com/repos/pclalv/shortener/issues/comments{/number}","contents_url":"https://api.github.com/repos/pclalv/shortener/contents/{+path}","compare_url":"https://api.github.com/repos/pclalv/shortener/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pclalv/shortener/merges","archive_url":"https://api.github.com/repos/pclalv/shortener/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pclalv/shortener/downloads","issues_url":"https://api.github.com/repos/pclalv/shortener/issues{/number}","pulls_url":"https://api.github.com/repos/pclalv/shortener/pulls{/number}","milestones_url":"https://api.github.com/repos/pclalv/shortener/milestones{/number}","notifications_url":"https://api.github.com/repos/pclalv/shortener/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pclalv/shortener/labels{/name}","releases_url":"https://api.github.com/repos/pclalv/shortener/releases{/id}","deployments_url":"https://api.github.com/repos/pclalv/shortener/deployments","created_at":"2016-04-01T18:43:42Z","updated_at":"2016-04-01T18:43:42Z","pushed_at":"2016-04-01T18:45:30Z","git_url":"git://github.com/pclalv/shortener.git","ssh_url":"git@github.com:pclalv/shortener.git","clone_url":"https://github.com/pclalv/shortener.git","svn_url":"https://github.com/pclalv/shortener","homepage":"http://jamespmcgrath.com/a-simple-link-shortener-in-rails/","size":181,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"jpmcgrath:develop","ref":"develop","sha":"4a8b1976d1d952dcad553fdc37385f48f1fcc29e","user":{"login":"jpmcgrath","id":646327,"avatar_url":"https://avatars.githubusercontent.com/u/646327?v=3","gravatar_id":"","url":"https://api.github.com/users/jpmcgrath","html_url":"https://github.com/jpmcgrath","followers_url":"https://api.github.com/users/jpmcgrath/followers","following_url":"https://api.github.com/users/jpmcgrath/following{/other_user}","gists_url":"https://api.github.com/users/jpmcgrath/gists{/gist_id}","starred_url":"https://api.github.com/users/jpmcgrath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpmcgrath/subscriptions","organizations_url":"https://api.github.com/users/jpmcgrath/orgs","repos_url":"https://api.github.com/users/jpmcgrath/repos","events_url":"https://api.github.com/users/jpmcgrath/events{/privacy}","received_events_url":"https://api.github.com/users/jpmcgrath/received_events","type":"User","site_admin":false},"repo":{"id":2306209,"name":"shortener","full_name":"jpmcgrath/shortener","owner":{"login":"jpmcgrath","id":646327,"avatar_url":"https://avatars.githubusercontent.com/u/646327?v=3","gravatar_id":"","url":"https://api.github.com/users/jpmcgrath","html_url":"https://github.com/jpmcgrath","followers_url":"https://api.github.com/users/jpmcgrath/followers","following_url":"https://api.github.com/users/jpmcgrath/following{/other_user}","gists_url":"https://api.github.com/users/jpmcgrath/gists{/gist_id}","starred_url":"https://api.github.com/users/jpmcgrath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpmcgrath/subscriptions","organizations_url":"https://api.github.com/users/jpmcgrath/orgs","repos_url":"https://api.github.com/users/jpmcgrath/repos","events_url":"https://api.github.com/users/jpmcgrath/events{/privacy}","received_events_url":"https://api.github.com/users/jpmcgrath/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jpmcgrath/shortener","description":"Shortener makes it easy to create shortened URLs for your rails application.","fork":false,"url":"https://api.github.com/repos/jpmcgrath/shortener","forks_url":"https://api.github.com/repos/jpmcgrath/shortener/forks","keys_url":"https://api.github.com/repos/jpmcgrath/shortener/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jpmcgrath/shortener/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jpmcgrath/shortener/teams","hooks_url":"https://api.github.com/repos/jpmcgrath/shortener/hooks","issue_events_url":"https://api.github.com/repos/jpmcgrath/shortener/issues/events{/number}","events_url":"https://api.github.com/repos/jpmcgrath/shortener/events","assignees_url":"https://api.github.com/repos/jpmcgrath/shortener/assignees{/user}","branches_url":"https://api.github.com/repos/jpmcgrath/shortener/branches{/branch}","tags_url":"https://api.github.com/repos/jpmcgrath/shortener/tags","blobs_url":"https://api.github.com/repos/jpmcgrath/shortener/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jpmcgrath/shortener/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jpmcgrath/shortener/git/refs{/sha}","trees_url":"https://api.github.com/repos/jpmcgrath/shortener/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jpmcgrath/shortener/statuses/{sha}","languages_url":"https://api.github.com/repos/jpmcgrath/shortener/languages","stargazers_url":"https://api.github.com/repos/jpmcgrath/shortener/stargazers","contributors_url":"https://api.github.com/repos/jpmcgrath/shortener/contributors","subscribers_url":"https://api.github.com/repos/jpmcgrath/shortener/subscribers","subscription_url":"https://api.github.com/repos/jpmcgrath/shortener/subscription","commits_url":"https://api.github.com/repos/jpmcgrath/shortener/commits{/sha}","git_commits_url":"https://api.github.com/repos/jpmcgrath/shortener/git/commits{/sha}","comments_url":"https://api.github.com/repos/jpmcgrath/shortener/comments{/number}","issue_comment_url":"https://api.github.com/repos/jpmcgrath/shortener/issues/comments{/number}","contents_url":"https://api.github.com/repos/jpmcgrath/shortener/contents/{+path}","compare_url":"https://api.github.com/repos/jpmcgrath/shortener/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jpmcgrath/shortener/merges","archive_url":"https://api.github.com/repos/jpmcgrath/shortener/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jpmcgrath/shortener/downloads","issues_url":"https://api.github.com/repos/jpmcgrath/shortener/issues{/number}","pulls_url":"https://api.github.com/repos/jpmcgrath/shortener/pulls{/number}","milestones_url":"https://api.github.com/repos/jpmcgrath/shortener/milestones{/number}","notifications_url":"https://api.github.com/repos/jpmcgrath/shortener/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jpmcgrath/shortener/labels{/name}","releases_url":"https://api.github.com/repos/jpmcgrath/shortener/releases{/id}","deployments_url":"https://api.github.com/repos/jpmcgrath/shortener/deployments","created_at":"2011-09-01T06:15:55Z","updated_at":"2016-04-19T02:27:41Z","pushed_at":"2016-04-22T02:11:52Z","git_url":"git://github.com/jpmcgrath/shortener.git","ssh_url":"git@github.com:jpmcgrath/shortener.git","clone_url":"https://github.com/jpmcgrath/shortener.git","svn_url":"https://github.com/jpmcgrath/shortener","homepage":"http://jamespmcgrath.com/a-simple-link-shortener-in-rails/","size":241,"stargazers_count":223,"watchers_count":223,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":114,"mirror_url":null,"open_issues_count":17,"forks":114,"open_issues":17,"watchers":223,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/jpmcgrath/shortener/pulls/65"},"html":{"href":"https://github.com/jpmcgrath/shortener/pull/65"},"issue":{"href":"https://api.github.com/repos/jpmcgrath/shortener/issues/65"},"comments":{"href":"https://api.github.com/repos/jpmcgrath/shortener/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/jpmcgrath/shortener/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/jpmcgrath/shortener/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jpmcgrath/shortener/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/jpmcgrath/shortener/statuses/25ccb1760beb73d52cdcc26ac5d1d3121f419918"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jpmcgrath","id":646327,"avatar_url":"https://avatars.githubusercontent.com/u/646327?v=3","gravatar_id":"","url":"https://api.github.com/users/jpmcgrath","html_url":"https://github.com/jpmcgrath","followers_url":"https://api.github.com/users/jpmcgrath/followers","following_url":"https://api.github.com/users/jpmcgrath/following{/other_user}","gists_url":"https://api.github.com/users/jpmcgrath/gists{/gist_id}","starred_url":"https://api.github.com/users/jpmcgrath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpmcgrath/subscriptions","organizations_url":"https://api.github.com/users/jpmcgrath/orgs","repos_url":"https://api.github.com/users/jpmcgrath/repos","events_url":"https://api.github.com/users/jpmcgrath/events{/privacy}","received_events_url":"https://api.github.com/users/jpmcgrath/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":4,"deletions":0,"changed_files":1}}