{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/tms_40/pulls/comments/46533266","id":46533266,"diff_hunk":"@@ -0,0 +1,9 @@\n+class Supervisor::CoursesSubjectsController < ApplicationController\n+  def index\n+    @courses = Course.all\n+  end\n+\n+  def edit\n+    @courses_subject = CoursesSubject.all.find_subjects(params[:id])","path":"app/controllers/supervisor/courses_subjects_controller.rb","position":7,"original_position":7,"commit_id":"d7e1048bcac9bedd3dda157b245d321467e3c2ae","original_commit_id":"d7e1048bcac9bedd3dda157b245d321467e3c2ae","user":{"login":"zenith19","id":16015628,"avatar_url":"https://avatars.githubusercontent.com/u/16015628?v=3","gravatar_id":"","url":"https://api.github.com/users/zenith19","html_url":"https://github.com/zenith19","followers_url":"https://api.github.com/users/zenith19/followers","following_url":"https://api.github.com/users/zenith19/following{/other_user}","gists_url":"https://api.github.com/users/zenith19/gists{/gist_id}","starred_url":"https://api.github.com/users/zenith19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenith19/subscriptions","organizations_url":"https://api.github.com/users/zenith19/orgs","repos_url":"https://api.github.com/users/zenith19/repos","events_url":"https://api.github.com/users/zenith19/events{/privacy}","received_events_url":"https://api.github.com/users/zenith19/received_events","type":"User","site_admin":false},"body":"()","created_at":"2015-12-03T10:10:27Z","updated_at":"2015-12-03T10:10:27Z","html_url":"https://github.com/framgia/tms_40/pull/12#discussion_r46533266","pull_request_url":"https://api.github.com/repos/framgia/tms_40/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_40/pulls/comments/46533266"},"html":{"href":"https://github.com/framgia/tms_40/pull/12#discussion_r46533266"},"pull_request":{"href":"https://api.github.com/repos/framgia/tms_40/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/tms_40/pulls/12","id":52507370,"html_url":"https://github.com/framgia/tms_40/pull/12","diff_url":"https://github.com/framgia/tms_40/pull/12.diff","patch_url":"https://github.com/framgia/tms_40/pull/12.patch","issue_url":"https://api.github.com/repos/framgia/tms_40/issues/12","number":12,"state":"open","locked":false,"title":"Loading all the subjects of a particular course to finish","user":{"login":"Rownaknira","id":12246367,"avatar_url":"https://avatars.githubusercontent.com/u/12246367?v=3","gravatar_id":"","url":"https://api.github.com/users/Rownaknira","html_url":"https://github.com/Rownaknira","followers_url":"https://api.github.com/users/Rownaknira/followers","following_url":"https://api.github.com/users/Rownaknira/following{/other_user}","gists_url":"https://api.github.com/users/Rownaknira/gists{/gist_id}","starred_url":"https://api.github.com/users/Rownaknira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rownaknira/subscriptions","organizations_url":"https://api.github.com/users/Rownaknira/orgs","repos_url":"https://api.github.com/users/Rownaknira/repos","events_url":"https://api.github.com/users/Rownaknira/events{/privacy}","received_events_url":"https://api.github.com/users/Rownaknira/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-03T09:05:23Z","updated_at":"2015-12-03T10:10:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75e79c77f354a764e7c4fff4f72bbd8b707edcd3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/tms_40/pulls/12/commits","review_comments_url":"https://api.github.com/repos/framgia/tms_40/pulls/12/comments","review_comment_url":"https://api.github.com/repos/framgia/tms_40/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/tms_40/issues/12/comments","statuses_url":"https://api.github.com/repos/framgia/tms_40/statuses/d7e1048bcac9bedd3dda157b245d321467e3c2ae","head":{"label":"Rownaknira:46830_finish_subj_by_supervisor","ref":"46830_finish_subj_by_supervisor","sha":"d7e1048bcac9bedd3dda157b245d321467e3c2ae","user":{"login":"Rownaknira","id":12246367,"avatar_url":"https://avatars.githubusercontent.com/u/12246367?v=3","gravatar_id":"","url":"https://api.github.com/users/Rownaknira","html_url":"https://github.com/Rownaknira","followers_url":"https://api.github.com/users/Rownaknira/followers","following_url":"https://api.github.com/users/Rownaknira/following{/other_user}","gists_url":"https://api.github.com/users/Rownaknira/gists{/gist_id}","starred_url":"https://api.github.com/users/Rownaknira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rownaknira/subscriptions","organizations_url":"https://api.github.com/users/Rownaknira/orgs","repos_url":"https://api.github.com/users/Rownaknira/repos","events_url":"https://api.github.com/users/Rownaknira/events{/privacy}","received_events_url":"https://api.github.com/users/Rownaknira/received_events","type":"User","site_admin":false},"repo":{"id":47092022,"name":"tms_40","full_name":"Rownaknira/tms_40","owner":{"login":"Rownaknira","id":12246367,"avatar_url":"https://avatars.githubusercontent.com/u/12246367?v=3","gravatar_id":"","url":"https://api.github.com/users/Rownaknira","html_url":"https://github.com/Rownaknira","followers_url":"https://api.github.com/users/Rownaknira/followers","following_url":"https://api.github.com/users/Rownaknira/following{/other_user}","gists_url":"https://api.github.com/users/Rownaknira/gists{/gist_id}","starred_url":"https://api.github.com/users/Rownaknira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rownaknira/subscriptions","organizations_url":"https://api.github.com/users/Rownaknira/orgs","repos_url":"https://api.github.com/users/Rownaknira/repos","events_url":"https://api.github.com/users/Rownaknira/events{/privacy}","received_events_url":"https://api.github.com/users/Rownaknira/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Rownaknira/tms_40","description":"Framgia Training Management System (training)","fork":true,"url":"https://api.github.com/repos/Rownaknira/tms_40","forks_url":"https://api.github.com/repos/Rownaknira/tms_40/forks","keys_url":"https://api.github.com/repos/Rownaknira/tms_40/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rownaknira/tms_40/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rownaknira/tms_40/teams","hooks_url":"https://api.github.com/repos/Rownaknira/tms_40/hooks","issue_events_url":"https://api.github.com/repos/Rownaknira/tms_40/issues/events{/number}","events_url":"https://api.github.com/repos/Rownaknira/tms_40/events","assignees_url":"https://api.github.com/repos/Rownaknira/tms_40/assignees{/user}","branches_url":"https://api.github.com/repos/Rownaknira/tms_40/branches{/branch}","tags_url":"https://api.github.com/repos/Rownaknira/tms_40/tags","blobs_url":"https://api.github.com/repos/Rownaknira/tms_40/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rownaknira/tms_40/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rownaknira/tms_40/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rownaknira/tms_40/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rownaknira/tms_40/statuses/{sha}","languages_url":"https://api.github.com/repos/Rownaknira/tms_40/languages","stargazers_url":"https://api.github.com/repos/Rownaknira/tms_40/stargazers","contributors_url":"https://api.github.com/repos/Rownaknira/tms_40/contributors","subscribers_url":"https://api.github.com/repos/Rownaknira/tms_40/subscribers","subscription_url":"https://api.github.com/repos/Rownaknira/tms_40/subscription","commits_url":"https://api.github.com/repos/Rownaknira/tms_40/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rownaknira/tms_40/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rownaknira/tms_40/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rownaknira/tms_40/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rownaknira/tms_40/contents/{+path}","compare_url":"https://api.github.com/repos/Rownaknira/tms_40/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rownaknira/tms_40/merges","archive_url":"https://api.github.com/repos/Rownaknira/tms_40/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rownaknira/tms_40/downloads","issues_url":"https://api.github.com/repos/Rownaknira/tms_40/issues{/number}","pulls_url":"https://api.github.com/repos/Rownaknira/tms_40/pulls{/number}","milestones_url":"https://api.github.com/repos/Rownaknira/tms_40/milestones{/number}","notifications_url":"https://api.github.com/repos/Rownaknira/tms_40/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rownaknira/tms_40/labels{/name}","releases_url":"https://api.github.com/repos/Rownaknira/tms_40/releases{/id}","created_at":"2015-11-30T03:01:07Z","updated_at":"2015-11-27T07:04:38Z","pushed_at":"2015-12-03T10:09:32Z","git_url":"git://github.com/Rownaknira/tms_40.git","ssh_url":"git@github.com:Rownaknira/tms_40.git","clone_url":"https://github.com/Rownaknira/tms_40.git","svn_url":"https://github.com/Rownaknira/tms_40","homepage":null,"size":56,"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":"e46e5d88c54c0087ab8165ea940197940c939ede","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":46964929,"name":"tms_40","full_name":"framgia/tms_40","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/tms_40","description":"Framgia Training Management System (training)","fork":false,"url":"https://api.github.com/repos/framgia/tms_40","forks_url":"https://api.github.com/repos/framgia/tms_40/forks","keys_url":"https://api.github.com/repos/framgia/tms_40/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/tms_40/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/tms_40/teams","hooks_url":"https://api.github.com/repos/framgia/tms_40/hooks","issue_events_url":"https://api.github.com/repos/framgia/tms_40/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/tms_40/events","assignees_url":"https://api.github.com/repos/framgia/tms_40/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/tms_40/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/tms_40/tags","blobs_url":"https://api.github.com/repos/framgia/tms_40/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/tms_40/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/tms_40/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/tms_40/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/tms_40/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/tms_40/languages","stargazers_url":"https://api.github.com/repos/framgia/tms_40/stargazers","contributors_url":"https://api.github.com/repos/framgia/tms_40/contributors","subscribers_url":"https://api.github.com/repos/framgia/tms_40/subscribers","subscription_url":"https://api.github.com/repos/framgia/tms_40/subscription","commits_url":"https://api.github.com/repos/framgia/tms_40/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/tms_40/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/tms_40/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/tms_40/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/tms_40/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/tms_40/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/tms_40/merges","archive_url":"https://api.github.com/repos/framgia/tms_40/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/tms_40/downloads","issues_url":"https://api.github.com/repos/framgia/tms_40/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/tms_40/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/tms_40/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/tms_40/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/tms_40/labels{/name}","releases_url":"https://api.github.com/repos/framgia/tms_40/releases{/id}","created_at":"2015-11-27T07:04:38Z","updated_at":"2015-11-27T07:04:38Z","pushed_at":"2015-12-03T10:09:34Z","git_url":"git://github.com/framgia/tms_40.git","ssh_url":"git@github.com:framgia/tms_40.git","clone_url":"https://github.com/framgia/tms_40.git","svn_url":"https://github.com/framgia/tms_40","homepage":null,"size":79,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_40/pulls/12"},"html":{"href":"https://github.com/framgia/tms_40/pull/12"},"issue":{"href":"https://api.github.com/repos/framgia/tms_40/issues/12"},"comments":{"href":"https://api.github.com/repos/framgia/tms_40/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/tms_40/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/tms_40/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/tms_40/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/tms_40/statuses/d7e1048bcac9bedd3dda157b245d321467e3c2ae"}}}}