{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_146/pulls/comments/69105632","id":69105632,"diff_hunk":"@@ -0,0 +1,13 @@\n+class WordsController < ApplicationController\n+  def index\n+    @categories = Category.all\n+    if Settings.filter_options.include? params[:filter]\n+      filter = params[:filter]\n+    else\n+      filter = Settings.filter_options.last\n+    end\n+    @words = Word.in_category(params[:category_id])\n+      .send(filter, current_user.id).paginate page: params[:page],\n+      per_page: Settings.words_per_page\n+ end","path":"app/controllers/words_controller.rb","position":12,"original_position":12,"commit_id":"73233629ddbd210c8a722a973bc1e1e97966355b","original_commit_id":"73233629ddbd210c8a722a973bc1e1e97966355b","user":{"login":"nguyenluc312","id":19769129,"avatar_url":"https://avatars.githubusercontent.com/u/19769129?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenluc312","html_url":"https://github.com/nguyenluc312","followers_url":"https://api.github.com/users/nguyenluc312/followers","following_url":"https://api.github.com/users/nguyenluc312/following{/other_user}","gists_url":"https://api.github.com/users/nguyenluc312/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenluc312/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenluc312/subscriptions","organizations_url":"https://api.github.com/users/nguyenluc312/orgs","repos_url":"https://api.github.com/users/nguyenluc312/repos","events_url":"https://api.github.com/users/nguyenluc312/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenluc312/received_events","type":"User","site_admin":false},"body":"indent","created_at":"2016-06-30T10:02:10Z","updated_at":"2016-06-30T10:02:10Z","html_url":"https://github.com/framgia/fels_146/pull/29#discussion_r69105632","pull_request_url":"https://api.github.com/repos/framgia/fels_146/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_146/pulls/comments/69105632"},"html":{"href":"https://github.com/framgia/fels_146/pull/29#discussion_r69105632"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_146/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_146/pulls/29","id":75752293,"html_url":"https://github.com/framgia/fels_146/pull/29","diff_url":"https://github.com/framgia/fels_146/pull/29.diff","patch_url":"https://github.com/framgia/fels_146/pull/29.patch","issue_url":"https://api.github.com/repos/framgia/fels_146/issues/29","number":29,"state":"open","locked":false,"title":"Show word and filter of user","user":{"login":"nguyenhad","id":19816147,"avatar_url":"https://avatars.githubusercontent.com/u/19816147?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenhad","html_url":"https://github.com/nguyenhad","followers_url":"https://api.github.com/users/nguyenhad/followers","following_url":"https://api.github.com/users/nguyenhad/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhad/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhad/subscriptions","organizations_url":"https://api.github.com/users/nguyenhad/orgs","repos_url":"https://api.github.com/users/nguyenhad/repos","events_url":"https://api.github.com/users/nguyenhad/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhad/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-30T02:42:28Z","updated_at":"2016-06-30T10:02:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c6379860d38877ce91585c2921dd39d7822f896","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_146/pulls/29/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_146/pulls/29/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_146/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_146/issues/29/comments","statuses_url":"https://api.github.com/repos/framgia/fels_146/statuses/73233629ddbd210c8a722a973bc1e1e97966355b","head":{"label":"nguyenhad:user_show_filter_words","ref":"user_show_filter_words","sha":"73233629ddbd210c8a722a973bc1e1e97966355b","user":{"login":"nguyenhad","id":19816147,"avatar_url":"https://avatars.githubusercontent.com/u/19816147?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenhad","html_url":"https://github.com/nguyenhad","followers_url":"https://api.github.com/users/nguyenhad/followers","following_url":"https://api.github.com/users/nguyenhad/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhad/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhad/subscriptions","organizations_url":"https://api.github.com/users/nguyenhad/orgs","repos_url":"https://api.github.com/users/nguyenhad/repos","events_url":"https://api.github.com/users/nguyenhad/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhad/received_events","type":"User","site_admin":false},"repo":{"id":61608458,"name":"fels_146","full_name":"nguyenhad/fels_146","owner":{"login":"nguyenhad","id":19816147,"avatar_url":"https://avatars.githubusercontent.com/u/19816147?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenhad","html_url":"https://github.com/nguyenhad","followers_url":"https://api.github.com/users/nguyenhad/followers","following_url":"https://api.github.com/users/nguyenhad/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhad/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhad/subscriptions","organizations_url":"https://api.github.com/users/nguyenhad/orgs","repos_url":"https://api.github.com/users/nguyenhad/repos","events_url":"https://api.github.com/users/nguyenhad/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenhad/fels_146","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/nguyenhad/fels_146","forks_url":"https://api.github.com/repos/nguyenhad/fels_146/forks","keys_url":"https://api.github.com/repos/nguyenhad/fels_146/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenhad/fels_146/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenhad/fels_146/teams","hooks_url":"https://api.github.com/repos/nguyenhad/fels_146/hooks","issue_events_url":"https://api.github.com/repos/nguyenhad/fels_146/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenhad/fels_146/events","assignees_url":"https://api.github.com/repos/nguyenhad/fels_146/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenhad/fels_146/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenhad/fels_146/tags","blobs_url":"https://api.github.com/repos/nguyenhad/fels_146/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenhad/fels_146/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenhad/fels_146/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenhad/fels_146/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenhad/fels_146/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenhad/fels_146/languages","stargazers_url":"https://api.github.com/repos/nguyenhad/fels_146/stargazers","contributors_url":"https://api.github.com/repos/nguyenhad/fels_146/contributors","subscribers_url":"https://api.github.com/repos/nguyenhad/fels_146/subscribers","subscription_url":"https://api.github.com/repos/nguyenhad/fels_146/subscription","commits_url":"https://api.github.com/repos/nguyenhad/fels_146/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenhad/fels_146/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenhad/fels_146/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenhad/fels_146/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenhad/fels_146/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenhad/fels_146/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenhad/fels_146/merges","archive_url":"https://api.github.com/repos/nguyenhad/fels_146/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenhad/fels_146/downloads","issues_url":"https://api.github.com/repos/nguyenhad/fels_146/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenhad/fels_146/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenhad/fels_146/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenhad/fels_146/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenhad/fels_146/labels{/name}","releases_url":"https://api.github.com/repos/nguyenhad/fels_146/releases{/id}","deployments_url":"https://api.github.com/repos/nguyenhad/fels_146/deployments","created_at":"2016-06-21T06:34:04Z","updated_at":"2016-06-20T05:54:01Z","pushed_at":"2016-06-30T09:55:12Z","git_url":"git://github.com/nguyenhad/fels_146.git","ssh_url":"git@github.com:nguyenhad/fels_146.git","clone_url":"https://github.com/nguyenhad/fels_146.git","svn_url":"https://github.com/nguyenhad/fels_146","homepage":null,"size":80,"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":"8f51a8d25fa24506f1f5c0f5347a4748168605b9","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":61520364,"name":"fels_146","full_name":"framgia/fels_146","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_146","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_146","forks_url":"https://api.github.com/repos/framgia/fels_146/forks","keys_url":"https://api.github.com/repos/framgia/fels_146/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_146/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_146/teams","hooks_url":"https://api.github.com/repos/framgia/fels_146/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_146/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_146/events","assignees_url":"https://api.github.com/repos/framgia/fels_146/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_146/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_146/tags","blobs_url":"https://api.github.com/repos/framgia/fels_146/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_146/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_146/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_146/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_146/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_146/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_146/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_146/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_146/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_146/subscription","commits_url":"https://api.github.com/repos/framgia/fels_146/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_146/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_146/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_146/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_146/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_146/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_146/merges","archive_url":"https://api.github.com/repos/framgia/fels_146/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_146/downloads","issues_url":"https://api.github.com/repos/framgia/fels_146/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_146/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_146/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_146/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_146/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_146/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_146/deployments","created_at":"2016-06-20T05:54:01Z","updated_at":"2016-06-20T05:54:01Z","pushed_at":"2016-06-30T09:55:12Z","git_url":"git://github.com/framgia/fels_146.git","ssh_url":"git@github.com:framgia/fels_146.git","clone_url":"https://github.com/framgia/fels_146.git","svn_url":"https://github.com/framgia/fels_146","homepage":null,"size":83,"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":8,"forks":2,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_146/pulls/29"},"html":{"href":"https://github.com/framgia/fels_146/pull/29"},"issue":{"href":"https://api.github.com/repos/framgia/fels_146/issues/29"},"comments":{"href":"https://api.github.com/repos/framgia/fels_146/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_146/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_146/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_146/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_146/statuses/73233629ddbd210c8a722a973bc1e1e97966355b"}}}}
{"actor":{"display_login":"nguyenluc312"}}