{"action":"created","comment":{"url":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/comments/77370761","id":77370761,"diff_hunk":"@@ -0,0 +1,6 @@\n+-@question.answers.any?\n+  - @question.answers.each do |answer|\n+      p = answer.body\n+      - if signed_in? && current_user.author_of?(answer)       \n+        = link_to('delete answer', answer_path(answer), :method => :delete)\n+        ","path":"app/views/questions/_answers.html.slim","position":6,"original_position":6,"commit_id":"fa9e4fd1812fe1fcd8213b182d1d481f82dbbd3b","original_commit_id":"fa9e4fd1812fe1fcd8213b182d1d481f82dbbd3b","user":{"login":"MarkRiaz","id":2941073,"avatar_url":"https://avatars.githubusercontent.com/u/2941073?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkRiaz","html_url":"https://github.com/MarkRiaz","followers_url":"https://api.github.com/users/MarkRiaz/followers","following_url":"https://api.github.com/users/MarkRiaz/following{/other_user}","gists_url":"https://api.github.com/users/MarkRiaz/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkRiaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkRiaz/subscriptions","organizations_url":"https://api.github.com/users/MarkRiaz/orgs","repos_url":"https://api.github.com/users/MarkRiaz/repos","events_url":"https://api.github.com/users/MarkRiaz/events{/privacy}","received_events_url":"https://api.github.com/users/MarkRiaz/received_events","type":"User","site_admin":false},"body":"lда я так изначально и сделал, но если я убираю цикл each do то у меня перестает вываливаться список поле рефреша страницы, а если оставляю то уже через жс генерится список в геометрической прогрессии, и остается реально количество только после рефреша страницы.","created_at":"2016-09-02T16:02:24Z","updated_at":"2016-09-02T16:02:24Z","html_url":"https://github.com/MarkRiaz/tcAPP/pull/4#discussion_r77370761","pull_request_url":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/comments/77370761"},"html":{"href":"https://github.com/MarkRiaz/tcAPP/pull/4#discussion_r77370761"},"pull_request":{"href":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/4","id":83721830,"html_url":"https://github.com/MarkRiaz/tcAPP/pull/4","diff_url":"https://github.com/MarkRiaz/tcAPP/pull/4.diff","patch_url":"https://github.com/MarkRiaz/tcAPP/pull/4.patch","issue_url":"https://api.github.com/repos/MarkRiaz/tcAPP/issues/4","number":4,"state":"open","locked":false,"title":"Ajax1","user":{"login":"MarkRiaz","id":2941073,"avatar_url":"https://avatars.githubusercontent.com/u/2941073?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkRiaz","html_url":"https://github.com/MarkRiaz","followers_url":"https://api.github.com/users/MarkRiaz/followers","following_url":"https://api.github.com/users/MarkRiaz/following{/other_user}","gists_url":"https://api.github.com/users/MarkRiaz/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkRiaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkRiaz/subscriptions","organizations_url":"https://api.github.com/users/MarkRiaz/orgs","repos_url":"https://api.github.com/users/MarkRiaz/repos","events_url":"https://api.github.com/users/MarkRiaz/events{/privacy}","received_events_url":"https://api.github.com/users/MarkRiaz/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-01T23:06:50Z","updated_at":"2016-09-02T16:02:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f6f527d65c3b2cdf9867941b2f75ef642e7e404","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/4/commits","review_comments_url":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/4/comments","review_comment_url":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MarkRiaz/tcAPP/issues/4/comments","statuses_url":"https://api.github.com/repos/MarkRiaz/tcAPP/statuses/fa9e4fd1812fe1fcd8213b182d1d481f82dbbd3b","head":{"label":"MarkRiaz:ajax1","ref":"ajax1","sha":"fa9e4fd1812fe1fcd8213b182d1d481f82dbbd3b","user":{"login":"MarkRiaz","id":2941073,"avatar_url":"https://avatars.githubusercontent.com/u/2941073?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkRiaz","html_url":"https://github.com/MarkRiaz","followers_url":"https://api.github.com/users/MarkRiaz/followers","following_url":"https://api.github.com/users/MarkRiaz/following{/other_user}","gists_url":"https://api.github.com/users/MarkRiaz/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkRiaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkRiaz/subscriptions","organizations_url":"https://api.github.com/users/MarkRiaz/orgs","repos_url":"https://api.github.com/users/MarkRiaz/repos","events_url":"https://api.github.com/users/MarkRiaz/events{/privacy}","received_events_url":"https://api.github.com/users/MarkRiaz/received_events","type":"User","site_admin":false},"repo":{"id":65482602,"name":"tcAPP","full_name":"MarkRiaz/tcAPP","owner":{"login":"MarkRiaz","id":2941073,"avatar_url":"https://avatars.githubusercontent.com/u/2941073?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkRiaz","html_url":"https://github.com/MarkRiaz","followers_url":"https://api.github.com/users/MarkRiaz/followers","following_url":"https://api.github.com/users/MarkRiaz/following{/other_user}","gists_url":"https://api.github.com/users/MarkRiaz/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkRiaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkRiaz/subscriptions","organizations_url":"https://api.github.com/users/MarkRiaz/orgs","repos_url":"https://api.github.com/users/MarkRiaz/repos","events_url":"https://api.github.com/users/MarkRiaz/events{/privacy}","received_events_url":"https://api.github.com/users/MarkRiaz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MarkRiaz/tcAPP","description":null,"fork":false,"url":"https://api.github.com/repos/MarkRiaz/tcAPP","forks_url":"https://api.github.com/repos/MarkRiaz/tcAPP/forks","keys_url":"https://api.github.com/repos/MarkRiaz/tcAPP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarkRiaz/tcAPP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarkRiaz/tcAPP/teams","hooks_url":"https://api.github.com/repos/MarkRiaz/tcAPP/hooks","issue_events_url":"https://api.github.com/repos/MarkRiaz/tcAPP/issues/events{/number}","events_url":"https://api.github.com/repos/MarkRiaz/tcAPP/events","assignees_url":"https://api.github.com/repos/MarkRiaz/tcAPP/assignees{/user}","branches_url":"https://api.github.com/repos/MarkRiaz/tcAPP/branches{/branch}","tags_url":"https://api.github.com/repos/MarkRiaz/tcAPP/tags","blobs_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarkRiaz/tcAPP/statuses/{sha}","languages_url":"https://api.github.com/repos/MarkRiaz/tcAPP/languages","stargazers_url":"https://api.github.com/repos/MarkRiaz/tcAPP/stargazers","contributors_url":"https://api.github.com/repos/MarkRiaz/tcAPP/contributors","subscribers_url":"https://api.github.com/repos/MarkRiaz/tcAPP/subscribers","subscription_url":"https://api.github.com/repos/MarkRiaz/tcAPP/subscription","commits_url":"https://api.github.com/repos/MarkRiaz/tcAPP/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarkRiaz/tcAPP/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarkRiaz/tcAPP/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarkRiaz/tcAPP/contents/{+path}","compare_url":"https://api.github.com/repos/MarkRiaz/tcAPP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarkRiaz/tcAPP/merges","archive_url":"https://api.github.com/repos/MarkRiaz/tcAPP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarkRiaz/tcAPP/downloads","issues_url":"https://api.github.com/repos/MarkRiaz/tcAPP/issues{/number}","pulls_url":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls{/number}","milestones_url":"https://api.github.com/repos/MarkRiaz/tcAPP/milestones{/number}","notifications_url":"https://api.github.com/repos/MarkRiaz/tcAPP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarkRiaz/tcAPP/labels{/name}","releases_url":"https://api.github.com/repos/MarkRiaz/tcAPP/releases{/id}","deployments_url":"https://api.github.com/repos/MarkRiaz/tcAPP/deployments","created_at":"2016-08-11T15:58:36Z","updated_at":"2016-08-11T15:59:15Z","pushed_at":"2016-09-01T23:06:50Z","git_url":"git://github.com/MarkRiaz/tcAPP.git","ssh_url":"git@github.com:MarkRiaz/tcAPP.git","clone_url":"https://github.com/MarkRiaz/tcAPP.git","svn_url":"https://github.com/MarkRiaz/tcAPP","homepage":null,"size":88,"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":"MarkRiaz:master","ref":"master","sha":"87de406c43bd6a7615b47d7fd77f8d53443da472","user":{"login":"MarkRiaz","id":2941073,"avatar_url":"https://avatars.githubusercontent.com/u/2941073?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkRiaz","html_url":"https://github.com/MarkRiaz","followers_url":"https://api.github.com/users/MarkRiaz/followers","following_url":"https://api.github.com/users/MarkRiaz/following{/other_user}","gists_url":"https://api.github.com/users/MarkRiaz/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkRiaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkRiaz/subscriptions","organizations_url":"https://api.github.com/users/MarkRiaz/orgs","repos_url":"https://api.github.com/users/MarkRiaz/repos","events_url":"https://api.github.com/users/MarkRiaz/events{/privacy}","received_events_url":"https://api.github.com/users/MarkRiaz/received_events","type":"User","site_admin":false},"repo":{"id":65482602,"name":"tcAPP","full_name":"MarkRiaz/tcAPP","owner":{"login":"MarkRiaz","id":2941073,"avatar_url":"https://avatars.githubusercontent.com/u/2941073?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkRiaz","html_url":"https://github.com/MarkRiaz","followers_url":"https://api.github.com/users/MarkRiaz/followers","following_url":"https://api.github.com/users/MarkRiaz/following{/other_user}","gists_url":"https://api.github.com/users/MarkRiaz/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkRiaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkRiaz/subscriptions","organizations_url":"https://api.github.com/users/MarkRiaz/orgs","repos_url":"https://api.github.com/users/MarkRiaz/repos","events_url":"https://api.github.com/users/MarkRiaz/events{/privacy}","received_events_url":"https://api.github.com/users/MarkRiaz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MarkRiaz/tcAPP","description":null,"fork":false,"url":"https://api.github.com/repos/MarkRiaz/tcAPP","forks_url":"https://api.github.com/repos/MarkRiaz/tcAPP/forks","keys_url":"https://api.github.com/repos/MarkRiaz/tcAPP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarkRiaz/tcAPP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarkRiaz/tcAPP/teams","hooks_url":"https://api.github.com/repos/MarkRiaz/tcAPP/hooks","issue_events_url":"https://api.github.com/repos/MarkRiaz/tcAPP/issues/events{/number}","events_url":"https://api.github.com/repos/MarkRiaz/tcAPP/events","assignees_url":"https://api.github.com/repos/MarkRiaz/tcAPP/assignees{/user}","branches_url":"https://api.github.com/repos/MarkRiaz/tcAPP/branches{/branch}","tags_url":"https://api.github.com/repos/MarkRiaz/tcAPP/tags","blobs_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarkRiaz/tcAPP/statuses/{sha}","languages_url":"https://api.github.com/repos/MarkRiaz/tcAPP/languages","stargazers_url":"https://api.github.com/repos/MarkRiaz/tcAPP/stargazers","contributors_url":"https://api.github.com/repos/MarkRiaz/tcAPP/contributors","subscribers_url":"https://api.github.com/repos/MarkRiaz/tcAPP/subscribers","subscription_url":"https://api.github.com/repos/MarkRiaz/tcAPP/subscription","commits_url":"https://api.github.com/repos/MarkRiaz/tcAPP/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarkRiaz/tcAPP/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarkRiaz/tcAPP/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarkRiaz/tcAPP/contents/{+path}","compare_url":"https://api.github.com/repos/MarkRiaz/tcAPP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarkRiaz/tcAPP/merges","archive_url":"https://api.github.com/repos/MarkRiaz/tcAPP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarkRiaz/tcAPP/downloads","issues_url":"https://api.github.com/repos/MarkRiaz/tcAPP/issues{/number}","pulls_url":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls{/number}","milestones_url":"https://api.github.com/repos/MarkRiaz/tcAPP/milestones{/number}","notifications_url":"https://api.github.com/repos/MarkRiaz/tcAPP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarkRiaz/tcAPP/labels{/name}","releases_url":"https://api.github.com/repos/MarkRiaz/tcAPP/releases{/id}","deployments_url":"https://api.github.com/repos/MarkRiaz/tcAPP/deployments","created_at":"2016-08-11T15:58:36Z","updated_at":"2016-08-11T15:59:15Z","pushed_at":"2016-09-01T23:06:50Z","git_url":"git://github.com/MarkRiaz/tcAPP.git","ssh_url":"git@github.com:MarkRiaz/tcAPP.git","clone_url":"https://github.com/MarkRiaz/tcAPP.git","svn_url":"https://github.com/MarkRiaz/tcAPP","homepage":null,"size":88,"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/MarkRiaz/tcAPP/pulls/4"},"html":{"href":"https://github.com/MarkRiaz/tcAPP/pull/4"},"issue":{"href":"https://api.github.com/repos/MarkRiaz/tcAPP/issues/4"},"comments":{"href":"https://api.github.com/repos/MarkRiaz/tcAPP/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/MarkRiaz/tcAPP/statuses/fa9e4fd1812fe1fcd8213b182d1d481f82dbbd3b"}}}}
{"actor":{"display_login":"MarkRiaz"}}