{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_163/pulls/comments/70194149","id":70194149,"diff_hunk":"@@ -16,4 +16,21 @@ def link_to_add_fields name, f, association\n     link_to name, \"#\", class: \"add_fields\",\n       data: {id: id, fields: fields.gsub(\"\\n\", \"\")}\n   end\n+\n+  def link_to_object activity\n+    object = case activity.activity_type\n+      when \"follow\"\n+        User.find_by_id activity.action_id\n+      when \"new_category\"\n+        Category.find_by_id activity.action_id\n+      when \"new_lesson\"\n+        Lesson.find_by_id activity.action_id\n+      end\n+    if object.nil?\n+      link_to t(\"error._error\"), help_path","path":"app/helpers/application_helper.rb","position":15,"original_position":15,"commit_id":"af1617a051253d1aea802398cbaf2cc3b47a925d","original_commit_id":"af1617a051253d1aea802398cbaf2cc3b47a925d","user":{"login":"hellovietnam93","id":8023606,"avatar_url":"https://avatars.githubusercontent.com/u/8023606?v=3","gravatar_id":"","url":"https://api.github.com/users/hellovietnam93","html_url":"https://github.com/hellovietnam93","followers_url":"https://api.github.com/users/hellovietnam93/followers","following_url":"https://api.github.com/users/hellovietnam93/following{/other_user}","gists_url":"https://api.github.com/users/hellovietnam93/gists{/gist_id}","starred_url":"https://api.github.com/users/hellovietnam93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellovietnam93/subscriptions","organizations_url":"https://api.github.com/users/hellovietnam93/orgs","repos_url":"https://api.github.com/users/hellovietnam93/repos","events_url":"https://api.github.com/users/hellovietnam93/events{/privacy}","received_events_url":"https://api.github.com/users/hellovietnam93/received_events","type":"User","site_admin":false},"body":"đưa vè help_path à","created_at":"2016-07-11T01:50:10Z","updated_at":"2016-07-11T01:50:10Z","html_url":"https://github.com/framgia/fels_163/pull/20#discussion_r70194149","pull_request_url":"https://api.github.com/repos/framgia/fels_163/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_163/pulls/comments/70194149"},"html":{"href":"https://github.com/framgia/fels_163/pull/20#discussion_r70194149"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_163/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_163/pulls/20","id":76839042,"html_url":"https://github.com/framgia/fels_163/pull/20","diff_url":"https://github.com/framgia/fels_163/pull/20.diff","patch_url":"https://github.com/framgia/fels_163/pull/20.patch","issue_url":"https://api.github.com/repos/framgia/fels_163/issues/20","number":20,"state":"open","locked":false,"title":"Show activity","user":{"login":"qtsoul95","id":15893561,"avatar_url":"https://avatars.githubusercontent.com/u/15893561?v=3","gravatar_id":"","url":"https://api.github.com/users/qtsoul95","html_url":"https://github.com/qtsoul95","followers_url":"https://api.github.com/users/qtsoul95/followers","following_url":"https://api.github.com/users/qtsoul95/following{/other_user}","gists_url":"https://api.github.com/users/qtsoul95/gists{/gist_id}","starred_url":"https://api.github.com/users/qtsoul95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qtsoul95/subscriptions","organizations_url":"https://api.github.com/users/qtsoul95/orgs","repos_url":"https://api.github.com/users/qtsoul95/repos","events_url":"https://api.github.com/users/qtsoul95/events{/privacy}","received_events_url":"https://api.github.com/users/qtsoul95/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-09T06:17:12Z","updated_at":"2016-07-11T01:50:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c41e993e3bacd54cad4316165fe3b09370e2f8dd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_163/pulls/20/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_163/pulls/20/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_163/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_163/issues/20/comments","statuses_url":"https://api.github.com/repos/framgia/fels_163/statuses/af1617a051253d1aea802398cbaf2cc3b47a925d","head":{"label":"qtsoul95:showactivity","ref":"showactivity","sha":"af1617a051253d1aea802398cbaf2cc3b47a925d","user":{"login":"qtsoul95","id":15893561,"avatar_url":"https://avatars.githubusercontent.com/u/15893561?v=3","gravatar_id":"","url":"https://api.github.com/users/qtsoul95","html_url":"https://github.com/qtsoul95","followers_url":"https://api.github.com/users/qtsoul95/followers","following_url":"https://api.github.com/users/qtsoul95/following{/other_user}","gists_url":"https://api.github.com/users/qtsoul95/gists{/gist_id}","starred_url":"https://api.github.com/users/qtsoul95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qtsoul95/subscriptions","organizations_url":"https://api.github.com/users/qtsoul95/orgs","repos_url":"https://api.github.com/users/qtsoul95/repos","events_url":"https://api.github.com/users/qtsoul95/events{/privacy}","received_events_url":"https://api.github.com/users/qtsoul95/received_events","type":"User","site_admin":false},"repo":{"id":62389262,"name":"fels_163","full_name":"qtsoul95/fels_163","owner":{"login":"qtsoul95","id":15893561,"avatar_url":"https://avatars.githubusercontent.com/u/15893561?v=3","gravatar_id":"","url":"https://api.github.com/users/qtsoul95","html_url":"https://github.com/qtsoul95","followers_url":"https://api.github.com/users/qtsoul95/followers","following_url":"https://api.github.com/users/qtsoul95/following{/other_user}","gists_url":"https://api.github.com/users/qtsoul95/gists{/gist_id}","starred_url":"https://api.github.com/users/qtsoul95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qtsoul95/subscriptions","organizations_url":"https://api.github.com/users/qtsoul95/orgs","repos_url":"https://api.github.com/users/qtsoul95/repos","events_url":"https://api.github.com/users/qtsoul95/events{/privacy}","received_events_url":"https://api.github.com/users/qtsoul95/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/qtsoul95/fels_163","description":null,"fork":true,"url":"https://api.github.com/repos/qtsoul95/fels_163","forks_url":"https://api.github.com/repos/qtsoul95/fels_163/forks","keys_url":"https://api.github.com/repos/qtsoul95/fels_163/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qtsoul95/fels_163/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qtsoul95/fels_163/teams","hooks_url":"https://api.github.com/repos/qtsoul95/fels_163/hooks","issue_events_url":"https://api.github.com/repos/qtsoul95/fels_163/issues/events{/number}","events_url":"https://api.github.com/repos/qtsoul95/fels_163/events","assignees_url":"https://api.github.com/repos/qtsoul95/fels_163/assignees{/user}","branches_url":"https://api.github.com/repos/qtsoul95/fels_163/branches{/branch}","tags_url":"https://api.github.com/repos/qtsoul95/fels_163/tags","blobs_url":"https://api.github.com/repos/qtsoul95/fels_163/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qtsoul95/fels_163/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qtsoul95/fels_163/git/refs{/sha}","trees_url":"https://api.github.com/repos/qtsoul95/fels_163/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qtsoul95/fels_163/statuses/{sha}","languages_url":"https://api.github.com/repos/qtsoul95/fels_163/languages","stargazers_url":"https://api.github.com/repos/qtsoul95/fels_163/stargazers","contributors_url":"https://api.github.com/repos/qtsoul95/fels_163/contributors","subscribers_url":"https://api.github.com/repos/qtsoul95/fels_163/subscribers","subscription_url":"https://api.github.com/repos/qtsoul95/fels_163/subscription","commits_url":"https://api.github.com/repos/qtsoul95/fels_163/commits{/sha}","git_commits_url":"https://api.github.com/repos/qtsoul95/fels_163/git/commits{/sha}","comments_url":"https://api.github.com/repos/qtsoul95/fels_163/comments{/number}","issue_comment_url":"https://api.github.com/repos/qtsoul95/fels_163/issues/comments{/number}","contents_url":"https://api.github.com/repos/qtsoul95/fels_163/contents/{+path}","compare_url":"https://api.github.com/repos/qtsoul95/fels_163/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qtsoul95/fels_163/merges","archive_url":"https://api.github.com/repos/qtsoul95/fels_163/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qtsoul95/fels_163/downloads","issues_url":"https://api.github.com/repos/qtsoul95/fels_163/issues{/number}","pulls_url":"https://api.github.com/repos/qtsoul95/fels_163/pulls{/number}","milestones_url":"https://api.github.com/repos/qtsoul95/fels_163/milestones{/number}","notifications_url":"https://api.github.com/repos/qtsoul95/fels_163/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qtsoul95/fels_163/labels{/name}","releases_url":"https://api.github.com/repos/qtsoul95/fels_163/releases{/id}","deployments_url":"https://api.github.com/repos/qtsoul95/fels_163/deployments","created_at":"2016-07-01T11:45:57Z","updated_at":"2016-07-01T10:09:48Z","pushed_at":"2016-07-11T01:45:21Z","git_url":"git://github.com/qtsoul95/fels_163.git","ssh_url":"git@github.com:qtsoul95/fels_163.git","clone_url":"https://github.com/qtsoul95/fels_163.git","svn_url":"https://github.com/qtsoul95/fels_163","homepage":null,"size":81,"stargazers_count":0,"watchers_count":0,"language":null,"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":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"2b0c73234ba5118f3f4ea772502437a00b783a80","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":62384308,"name":"fels_163","full_name":"framgia/fels_163","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fels_163","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/fels_163","forks_url":"https://api.github.com/repos/framgia/fels_163/forks","keys_url":"https://api.github.com/repos/framgia/fels_163/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_163/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_163/teams","hooks_url":"https://api.github.com/repos/framgia/fels_163/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_163/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_163/events","assignees_url":"https://api.github.com/repos/framgia/fels_163/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_163/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_163/tags","blobs_url":"https://api.github.com/repos/framgia/fels_163/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_163/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_163/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_163/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_163/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_163/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_163/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_163/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_163/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_163/subscription","commits_url":"https://api.github.com/repos/framgia/fels_163/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_163/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_163/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_163/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_163/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_163/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_163/merges","archive_url":"https://api.github.com/repos/framgia/fels_163/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_163/downloads","issues_url":"https://api.github.com/repos/framgia/fels_163/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_163/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_163/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_163/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_163/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_163/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_163/deployments","created_at":"2016-07-01T10:09:48Z","updated_at":"2016-07-01T10:09:48Z","pushed_at":"2016-07-11T01:45:21Z","git_url":"git://github.com/framgia/fels_163.git","ssh_url":"git@github.com:framgia/fels_163.git","clone_url":"https://github.com/framgia/fels_163.git","svn_url":"https://github.com/framgia/fels_163","homepage":null,"size":85,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_163/pulls/20"},"html":{"href":"https://github.com/framgia/fels_163/pull/20"},"issue":{"href":"https://api.github.com/repos/framgia/fels_163/issues/20"},"comments":{"href":"https://api.github.com/repos/framgia/fels_163/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_163/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_163/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_163/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_163/statuses/af1617a051253d1aea802398cbaf2cc3b47a925d"}}}}
{"actor":{"display_login":"hellovietnam93"}}