{"action":"created","comment":{"url":"https://api.github.com/repos/sshkarupa/flashcards/pulls/comments/26679748","id":26679748,"diff_hunk":"@@ -1,4 +1,9 @@\n Rails.application.routes.draw do\n+\n+  # Чтобы избежать генерации лишних resource-роутов, делаем так:  ","path":"config/routes.rb","position":3,"original_position":3,"commit_id":"734d3b7158dbf8ba5a10bea26c8626c9de8f5b8e","original_commit_id":"734d3b7158dbf8ba5a10bea26c8626c9de8f5b8e","user":{"login":"Fodoj","id":78866,"avatar_url":"https://avatars.githubusercontent.com/u/78866?v=3","gravatar_id":"","url":"https://api.github.com/users/Fodoj","html_url":"https://github.com/Fodoj","followers_url":"https://api.github.com/users/Fodoj/followers","following_url":"https://api.github.com/users/Fodoj/following{/other_user}","gists_url":"https://api.github.com/users/Fodoj/gists{/gist_id}","starred_url":"https://api.github.com/users/Fodoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fodoj/subscriptions","organizations_url":"https://api.github.com/users/Fodoj/orgs","repos_url":"https://api.github.com/users/Fodoj/repos","events_url":"https://api.github.com/users/Fodoj/events{/privacy}","received_events_url":"https://api.github.com/users/Fodoj/received_events","type":"User","site_admin":false},"body":"Можно, но если тебе нужно для ресурса ограничить доступные роуты, то лучше использовать `only`","created_at":"2015-03-18T16:25:48Z","updated_at":"2015-03-18T16:25:48Z","html_url":"https://github.com/sshkarupa/flashcards/pull/3#discussion_r26679748","pull_request_url":"https://api.github.com/repos/sshkarupa/flashcards/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/sshkarupa/flashcards/pulls/comments/26679748"},"html":{"href":"https://github.com/sshkarupa/flashcards/pull/3#discussion_r26679748"},"pull_request":{"href":"https://api.github.com/repos/sshkarupa/flashcards/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/sshkarupa/flashcards/pulls/3","id":31441987,"html_url":"https://github.com/sshkarupa/flashcards/pull/3","diff_url":"https://github.com/sshkarupa/flashcards/pull/3.diff","patch_url":"https://github.com/sshkarupa/flashcards/pull/3.patch","issue_url":"https://api.github.com/repos/sshkarupa/flashcards/issues/3","number":3,"state":"open","locked":false,"title":"all cards","user":{"login":"sshkarupa","id":10585770,"avatar_url":"https://avatars.githubusercontent.com/u/10585770?v=3","gravatar_id":"","url":"https://api.github.com/users/sshkarupa","html_url":"https://github.com/sshkarupa","followers_url":"https://api.github.com/users/sshkarupa/followers","following_url":"https://api.github.com/users/sshkarupa/following{/other_user}","gists_url":"https://api.github.com/users/sshkarupa/gists{/gist_id}","starred_url":"https://api.github.com/users/sshkarupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshkarupa/subscriptions","organizations_url":"https://api.github.com/users/sshkarupa/orgs","repos_url":"https://api.github.com/users/sshkarupa/repos","events_url":"https://api.github.com/users/sshkarupa/events{/privacy}","received_events_url":"https://api.github.com/users/sshkarupa/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-18T15:48:53Z","updated_at":"2015-03-18T16:25:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8102e49de94ae696584674b82ea8fc3316eb305d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sshkarupa/flashcards/pulls/3/commits","review_comments_url":"https://api.github.com/repos/sshkarupa/flashcards/pulls/3/comments","review_comment_url":"https://api.github.com/repos/sshkarupa/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sshkarupa/flashcards/issues/3/comments","statuses_url":"https://api.github.com/repos/sshkarupa/flashcards/statuses/734d3b7158dbf8ba5a10bea26c8626c9de8f5b8e","head":{"label":"sshkarupa:second-task","ref":"second-task","sha":"734d3b7158dbf8ba5a10bea26c8626c9de8f5b8e","user":{"login":"sshkarupa","id":10585770,"avatar_url":"https://avatars.githubusercontent.com/u/10585770?v=3","gravatar_id":"","url":"https://api.github.com/users/sshkarupa","html_url":"https://github.com/sshkarupa","followers_url":"https://api.github.com/users/sshkarupa/followers","following_url":"https://api.github.com/users/sshkarupa/following{/other_user}","gists_url":"https://api.github.com/users/sshkarupa/gists{/gist_id}","starred_url":"https://api.github.com/users/sshkarupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshkarupa/subscriptions","organizations_url":"https://api.github.com/users/sshkarupa/orgs","repos_url":"https://api.github.com/users/sshkarupa/repos","events_url":"https://api.github.com/users/sshkarupa/events{/privacy}","received_events_url":"https://api.github.com/users/sshkarupa/received_events","type":"User","site_admin":false},"repo":{"id":32210929,"name":"flashcards","full_name":"sshkarupa/flashcards","owner":{"login":"sshkarupa","id":10585770,"avatar_url":"https://avatars.githubusercontent.com/u/10585770?v=3","gravatar_id":"","url":"https://api.github.com/users/sshkarupa","html_url":"https://github.com/sshkarupa","followers_url":"https://api.github.com/users/sshkarupa/followers","following_url":"https://api.github.com/users/sshkarupa/following{/other_user}","gists_url":"https://api.github.com/users/sshkarupa/gists{/gist_id}","starred_url":"https://api.github.com/users/sshkarupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshkarupa/subscriptions","organizations_url":"https://api.github.com/users/sshkarupa/orgs","repos_url":"https://api.github.com/users/sshkarupa/repos","events_url":"https://api.github.com/users/sshkarupa/events{/privacy}","received_events_url":"https://api.github.com/users/sshkarupa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sshkarupa/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/sshkarupa/flashcards","forks_url":"https://api.github.com/repos/sshkarupa/flashcards/forks","keys_url":"https://api.github.com/repos/sshkarupa/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sshkarupa/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sshkarupa/flashcards/teams","hooks_url":"https://api.github.com/repos/sshkarupa/flashcards/hooks","issue_events_url":"https://api.github.com/repos/sshkarupa/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/sshkarupa/flashcards/events","assignees_url":"https://api.github.com/repos/sshkarupa/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/sshkarupa/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/sshkarupa/flashcards/tags","blobs_url":"https://api.github.com/repos/sshkarupa/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sshkarupa/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sshkarupa/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/sshkarupa/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sshkarupa/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/sshkarupa/flashcards/languages","stargazers_url":"https://api.github.com/repos/sshkarupa/flashcards/stargazers","contributors_url":"https://api.github.com/repos/sshkarupa/flashcards/contributors","subscribers_url":"https://api.github.com/repos/sshkarupa/flashcards/subscribers","subscription_url":"https://api.github.com/repos/sshkarupa/flashcards/subscription","commits_url":"https://api.github.com/repos/sshkarupa/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/sshkarupa/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/sshkarupa/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/sshkarupa/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/sshkarupa/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/sshkarupa/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sshkarupa/flashcards/merges","archive_url":"https://api.github.com/repos/sshkarupa/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sshkarupa/flashcards/downloads","issues_url":"https://api.github.com/repos/sshkarupa/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/sshkarupa/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/sshkarupa/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/sshkarupa/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sshkarupa/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/sshkarupa/flashcards/releases{/id}","created_at":"2015-03-14T12:36:54Z","updated_at":"2015-03-17T11:33:20Z","pushed_at":"2015-03-18T15:46:09Z","git_url":"git://github.com/sshkarupa/flashcards.git","ssh_url":"git@github.com:sshkarupa/flashcards.git","clone_url":"https://github.com/sshkarupa/flashcards.git","svn_url":"https://github.com/sshkarupa/flashcards","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sshkarupa:master","ref":"master","sha":"85c69935c35f3634fc2f0a456fa38fd5fbe36d7b","user":{"login":"sshkarupa","id":10585770,"avatar_url":"https://avatars.githubusercontent.com/u/10585770?v=3","gravatar_id":"","url":"https://api.github.com/users/sshkarupa","html_url":"https://github.com/sshkarupa","followers_url":"https://api.github.com/users/sshkarupa/followers","following_url":"https://api.github.com/users/sshkarupa/following{/other_user}","gists_url":"https://api.github.com/users/sshkarupa/gists{/gist_id}","starred_url":"https://api.github.com/users/sshkarupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshkarupa/subscriptions","organizations_url":"https://api.github.com/users/sshkarupa/orgs","repos_url":"https://api.github.com/users/sshkarupa/repos","events_url":"https://api.github.com/users/sshkarupa/events{/privacy}","received_events_url":"https://api.github.com/users/sshkarupa/received_events","type":"User","site_admin":false},"repo":{"id":32210929,"name":"flashcards","full_name":"sshkarupa/flashcards","owner":{"login":"sshkarupa","id":10585770,"avatar_url":"https://avatars.githubusercontent.com/u/10585770?v=3","gravatar_id":"","url":"https://api.github.com/users/sshkarupa","html_url":"https://github.com/sshkarupa","followers_url":"https://api.github.com/users/sshkarupa/followers","following_url":"https://api.github.com/users/sshkarupa/following{/other_user}","gists_url":"https://api.github.com/users/sshkarupa/gists{/gist_id}","starred_url":"https://api.github.com/users/sshkarupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshkarupa/subscriptions","organizations_url":"https://api.github.com/users/sshkarupa/orgs","repos_url":"https://api.github.com/users/sshkarupa/repos","events_url":"https://api.github.com/users/sshkarupa/events{/privacy}","received_events_url":"https://api.github.com/users/sshkarupa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sshkarupa/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/sshkarupa/flashcards","forks_url":"https://api.github.com/repos/sshkarupa/flashcards/forks","keys_url":"https://api.github.com/repos/sshkarupa/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sshkarupa/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sshkarupa/flashcards/teams","hooks_url":"https://api.github.com/repos/sshkarupa/flashcards/hooks","issue_events_url":"https://api.github.com/repos/sshkarupa/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/sshkarupa/flashcards/events","assignees_url":"https://api.github.com/repos/sshkarupa/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/sshkarupa/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/sshkarupa/flashcards/tags","blobs_url":"https://api.github.com/repos/sshkarupa/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sshkarupa/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sshkarupa/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/sshkarupa/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sshkarupa/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/sshkarupa/flashcards/languages","stargazers_url":"https://api.github.com/repos/sshkarupa/flashcards/stargazers","contributors_url":"https://api.github.com/repos/sshkarupa/flashcards/contributors","subscribers_url":"https://api.github.com/repos/sshkarupa/flashcards/subscribers","subscription_url":"https://api.github.com/repos/sshkarupa/flashcards/subscription","commits_url":"https://api.github.com/repos/sshkarupa/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/sshkarupa/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/sshkarupa/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/sshkarupa/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/sshkarupa/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/sshkarupa/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sshkarupa/flashcards/merges","archive_url":"https://api.github.com/repos/sshkarupa/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sshkarupa/flashcards/downloads","issues_url":"https://api.github.com/repos/sshkarupa/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/sshkarupa/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/sshkarupa/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/sshkarupa/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sshkarupa/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/sshkarupa/flashcards/releases{/id}","created_at":"2015-03-14T12:36:54Z","updated_at":"2015-03-17T11:33:20Z","pushed_at":"2015-03-18T15:46:09Z","git_url":"git://github.com/sshkarupa/flashcards.git","ssh_url":"git@github.com:sshkarupa/flashcards.git","clone_url":"https://github.com/sshkarupa/flashcards.git","svn_url":"https://github.com/sshkarupa/flashcards","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sshkarupa/flashcards/pulls/3"},"html":{"href":"https://github.com/sshkarupa/flashcards/pull/3"},"issue":{"href":"https://api.github.com/repos/sshkarupa/flashcards/issues/3"},"comments":{"href":"https://api.github.com/repos/sshkarupa/flashcards/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/sshkarupa/flashcards/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/sshkarupa/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sshkarupa/flashcards/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/sshkarupa/flashcards/statuses/734d3b7158dbf8ba5a10bea26c8626c9de8f5b8e"}}}}