{"action":"created","comment":{"url":"https://api.github.com/repos/olegtc/flashcards/pulls/comments/36545612","id":36545612,"diff_hunk":"@@ -0,0 +1,24 @@\n+<% if flash[:correct_review] %>\n+  <div class=\"alert alert-success\" role=\"alert\">\n+    Правильно!\n+  </div>\n+<% elsif word = flash[:correct_answer] %>\n+  <div class=\"alert alert-danger\" role=\"alert\">\n+    Неверно! Правильный ответ: <%= word %>\n+  </div>\n+<% end %>\n+\n+<% if @review %>\n+  <div class=\"panel panel-primary\">\n+    <div class=\"panel-heading\">Пересмотр сегодня</div>\n+    <div class=\"panel-body\">\n+      <p> <%= @review.translated_text %> </p>\n+      <%= form_tag('/reviews', method: :post) do %>","path":"app/views/reviews/new.html.erb","position":16,"original_position":16,"commit_id":"934eee3b2b11a2c5487c6863c44ad9fdc4e0c4db","original_commit_id":"934eee3b2b11a2c5487c6863c44ad9fdc4e0c4db","user":{"login":"olegtc","id":2966983,"avatar_url":"https://avatars.githubusercontent.com/u/2966983?v=3","gravatar_id":"","url":"https://api.github.com/users/olegtc","html_url":"https://github.com/olegtc","followers_url":"https://api.github.com/users/olegtc/followers","following_url":"https://api.github.com/users/olegtc/following{/other_user}","gists_url":"https://api.github.com/users/olegtc/gists{/gist_id}","starred_url":"https://api.github.com/users/olegtc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegtc/subscriptions","organizations_url":"https://api.github.com/users/olegtc/orgs","repos_url":"https://api.github.com/users/olegtc/repos","events_url":"https://api.github.com/users/olegtc/events{/privacy}","received_events_url":"https://api.github.com/users/olegtc/received_events","type":"User","site_admin":false},"body":"Согласно RFC, отличие в том на что указывает URI, в случае с POST это\r\ncущность(контроллер) обрабатывающая запрос, а для PUT, URI указывает на\r\nконкретную сущность(объект, запись в БД) которая содержиться в запросе.\r\nХм, использование PUT выглядить логичней, ведь речь в запросе идет о\r\nконкретной записи в БД\r\n\r\n2015-08-07 16:19 GMT+03:00 mkdev-mentor-1 <notifications@github.com>:\r\n\r\n> In app/views/reviews/new.html.erb\r\n> <https://github.com/olegtc/flashcards/pull/5#discussion_r36517401>:\r\n>\r\n> > +<% if flash[:correct_review] %>\r\n> > +  <div class=\"alert alert-success\" role=\"alert\">\r\n> > +    Правильно!\r\n> > +  </div>\r\n> > +<% elsif word = flash[:correct_answer] %>\r\n> > +  <div class=\"alert alert-danger\" role=\"alert\">\r\n> > +    Неверно! Правильный ответ: <%= word %>\r\n> > +  </div>\r\n> > +<% end %>\r\n> > +\r\n> > +<% if @review %>\r\n> > +  <div class=\"panel panel-primary\">\r\n> > +    <div class=\"panel-heading\">Пересмотр сегодня</div>\r\n> > +    <div class=\"panel-body\">\r\n> > +      <p> <%= @review.translated_text %> </p>\r\n> > +      <%= form_tag('/reviews', method: :post) do %>\r\n>\r\n> 1.form_for :review\r\n> 2. чем отличается POST от PUT?\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/olegtc/flashcards/pull/5/files#r36517401>.\r\n>\r\n","created_at":"2015-08-07T18:15:33Z","updated_at":"2015-08-07T18:15:33Z","html_url":"https://github.com/olegtc/flashcards/pull/5#discussion_r36545612","pull_request_url":"https://api.github.com/repos/olegtc/flashcards/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/olegtc/flashcards/pulls/comments/36545612"},"html":{"href":"https://github.com/olegtc/flashcards/pull/5#discussion_r36545612"},"pull_request":{"href":"https://api.github.com/repos/olegtc/flashcards/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/olegtc/flashcards/pulls/5","id":41658043,"html_url":"https://github.com/olegtc/flashcards/pull/5","diff_url":"https://github.com/olegtc/flashcards/pull/5.diff","patch_url":"https://github.com/olegtc/flashcards/pull/5.patch","issue_url":"https://api.github.com/repos/olegtc/flashcards/issues/5","number":5,"state":"open","locked":false,"title":"fifth-task","user":{"login":"olegtc","id":2966983,"avatar_url":"https://avatars.githubusercontent.com/u/2966983?v=3","gravatar_id":"","url":"https://api.github.com/users/olegtc","html_url":"https://github.com/olegtc","followers_url":"https://api.github.com/users/olegtc/followers","following_url":"https://api.github.com/users/olegtc/following{/other_user}","gists_url":"https://api.github.com/users/olegtc/gists{/gist_id}","starred_url":"https://api.github.com/users/olegtc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegtc/subscriptions","organizations_url":"https://api.github.com/users/olegtc/orgs","repos_url":"https://api.github.com/users/olegtc/repos","events_url":"https://api.github.com/users/olegtc/events{/privacy}","received_events_url":"https://api.github.com/users/olegtc/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-05T09:12:45Z","updated_at":"2015-08-07T18:15:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8b0ff69586e128898cf838bc1b967dab5fc1a31","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/olegtc/flashcards/pulls/5/commits","review_comments_url":"https://api.github.com/repos/olegtc/flashcards/pulls/5/comments","review_comment_url":"https://api.github.com/repos/olegtc/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/olegtc/flashcards/issues/5/comments","statuses_url":"https://api.github.com/repos/olegtc/flashcards/statuses/934eee3b2b11a2c5487c6863c44ad9fdc4e0c4db","head":{"label":"olegtc:fifth-task","ref":"fifth-task","sha":"934eee3b2b11a2c5487c6863c44ad9fdc4e0c4db","user":{"login":"olegtc","id":2966983,"avatar_url":"https://avatars.githubusercontent.com/u/2966983?v=3","gravatar_id":"","url":"https://api.github.com/users/olegtc","html_url":"https://github.com/olegtc","followers_url":"https://api.github.com/users/olegtc/followers","following_url":"https://api.github.com/users/olegtc/following{/other_user}","gists_url":"https://api.github.com/users/olegtc/gists{/gist_id}","starred_url":"https://api.github.com/users/olegtc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegtc/subscriptions","organizations_url":"https://api.github.com/users/olegtc/orgs","repos_url":"https://api.github.com/users/olegtc/repos","events_url":"https://api.github.com/users/olegtc/events{/privacy}","received_events_url":"https://api.github.com/users/olegtc/received_events","type":"User","site_admin":false},"repo":{"id":39688739,"name":"flashcards","full_name":"olegtc/flashcards","owner":{"login":"olegtc","id":2966983,"avatar_url":"https://avatars.githubusercontent.com/u/2966983?v=3","gravatar_id":"","url":"https://api.github.com/users/olegtc","html_url":"https://github.com/olegtc","followers_url":"https://api.github.com/users/olegtc/followers","following_url":"https://api.github.com/users/olegtc/following{/other_user}","gists_url":"https://api.github.com/users/olegtc/gists{/gist_id}","starred_url":"https://api.github.com/users/olegtc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegtc/subscriptions","organizations_url":"https://api.github.com/users/olegtc/orgs","repos_url":"https://api.github.com/users/olegtc/repos","events_url":"https://api.github.com/users/olegtc/events{/privacy}","received_events_url":"https://api.github.com/users/olegtc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/olegtc/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/olegtc/flashcards","forks_url":"https://api.github.com/repos/olegtc/flashcards/forks","keys_url":"https://api.github.com/repos/olegtc/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olegtc/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olegtc/flashcards/teams","hooks_url":"https://api.github.com/repos/olegtc/flashcards/hooks","issue_events_url":"https://api.github.com/repos/olegtc/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/olegtc/flashcards/events","assignees_url":"https://api.github.com/repos/olegtc/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/olegtc/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/olegtc/flashcards/tags","blobs_url":"https://api.github.com/repos/olegtc/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olegtc/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olegtc/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/olegtc/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olegtc/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/olegtc/flashcards/languages","stargazers_url":"https://api.github.com/repos/olegtc/flashcards/stargazers","contributors_url":"https://api.github.com/repos/olegtc/flashcards/contributors","subscribers_url":"https://api.github.com/repos/olegtc/flashcards/subscribers","subscription_url":"https://api.github.com/repos/olegtc/flashcards/subscription","commits_url":"https://api.github.com/repos/olegtc/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/olegtc/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/olegtc/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/olegtc/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/olegtc/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/olegtc/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olegtc/flashcards/merges","archive_url":"https://api.github.com/repos/olegtc/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olegtc/flashcards/downloads","issues_url":"https://api.github.com/repos/olegtc/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/olegtc/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/olegtc/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/olegtc/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olegtc/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/olegtc/flashcards/releases{/id}","created_at":"2015-07-25T14:26:40Z","updated_at":"2015-07-25T17:16:04Z","pushed_at":"2015-08-07T10:29:35Z","git_url":"git://github.com/olegtc/flashcards.git","ssh_url":"git@github.com:olegtc/flashcards.git","clone_url":"https://github.com/olegtc/flashcards.git","svn_url":"https://github.com/olegtc/flashcards","homepage":null,"size":248,"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":"olegtc:master","ref":"master","sha":"321980ef74a5d85be4916bd405e087c2754c9f7f","user":{"login":"olegtc","id":2966983,"avatar_url":"https://avatars.githubusercontent.com/u/2966983?v=3","gravatar_id":"","url":"https://api.github.com/users/olegtc","html_url":"https://github.com/olegtc","followers_url":"https://api.github.com/users/olegtc/followers","following_url":"https://api.github.com/users/olegtc/following{/other_user}","gists_url":"https://api.github.com/users/olegtc/gists{/gist_id}","starred_url":"https://api.github.com/users/olegtc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegtc/subscriptions","organizations_url":"https://api.github.com/users/olegtc/orgs","repos_url":"https://api.github.com/users/olegtc/repos","events_url":"https://api.github.com/users/olegtc/events{/privacy}","received_events_url":"https://api.github.com/users/olegtc/received_events","type":"User","site_admin":false},"repo":{"id":39688739,"name":"flashcards","full_name":"olegtc/flashcards","owner":{"login":"olegtc","id":2966983,"avatar_url":"https://avatars.githubusercontent.com/u/2966983?v=3","gravatar_id":"","url":"https://api.github.com/users/olegtc","html_url":"https://github.com/olegtc","followers_url":"https://api.github.com/users/olegtc/followers","following_url":"https://api.github.com/users/olegtc/following{/other_user}","gists_url":"https://api.github.com/users/olegtc/gists{/gist_id}","starred_url":"https://api.github.com/users/olegtc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegtc/subscriptions","organizations_url":"https://api.github.com/users/olegtc/orgs","repos_url":"https://api.github.com/users/olegtc/repos","events_url":"https://api.github.com/users/olegtc/events{/privacy}","received_events_url":"https://api.github.com/users/olegtc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/olegtc/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/olegtc/flashcards","forks_url":"https://api.github.com/repos/olegtc/flashcards/forks","keys_url":"https://api.github.com/repos/olegtc/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olegtc/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olegtc/flashcards/teams","hooks_url":"https://api.github.com/repos/olegtc/flashcards/hooks","issue_events_url":"https://api.github.com/repos/olegtc/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/olegtc/flashcards/events","assignees_url":"https://api.github.com/repos/olegtc/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/olegtc/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/olegtc/flashcards/tags","blobs_url":"https://api.github.com/repos/olegtc/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olegtc/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olegtc/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/olegtc/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olegtc/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/olegtc/flashcards/languages","stargazers_url":"https://api.github.com/repos/olegtc/flashcards/stargazers","contributors_url":"https://api.github.com/repos/olegtc/flashcards/contributors","subscribers_url":"https://api.github.com/repos/olegtc/flashcards/subscribers","subscription_url":"https://api.github.com/repos/olegtc/flashcards/subscription","commits_url":"https://api.github.com/repos/olegtc/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/olegtc/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/olegtc/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/olegtc/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/olegtc/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/olegtc/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olegtc/flashcards/merges","archive_url":"https://api.github.com/repos/olegtc/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olegtc/flashcards/downloads","issues_url":"https://api.github.com/repos/olegtc/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/olegtc/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/olegtc/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/olegtc/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olegtc/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/olegtc/flashcards/releases{/id}","created_at":"2015-07-25T14:26:40Z","updated_at":"2015-07-25T17:16:04Z","pushed_at":"2015-08-07T10:29:35Z","git_url":"git://github.com/olegtc/flashcards.git","ssh_url":"git@github.com:olegtc/flashcards.git","clone_url":"https://github.com/olegtc/flashcards.git","svn_url":"https://github.com/olegtc/flashcards","homepage":null,"size":248,"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/olegtc/flashcards/pulls/5"},"html":{"href":"https://github.com/olegtc/flashcards/pull/5"},"issue":{"href":"https://api.github.com/repos/olegtc/flashcards/issues/5"},"comments":{"href":"https://api.github.com/repos/olegtc/flashcards/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/olegtc/flashcards/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/olegtc/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/olegtc/flashcards/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/olegtc/flashcards/statuses/934eee3b2b11a2c5487c6863c44ad9fdc4e0c4db"}}}}