{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/tms_38/pulls/comments/44777537","id":44777537,"diff_hunk":"@@ -1,11 +1,15 @@\n  <tr>\n     <td><%= link_to course.name, [:supervisor, course] %></td>\n-    <td>(0) <%= link_to t(:add_edit_text), '#' %></td>\n+    <td><%= course.description.truncate 50 %></td>\n+    <td>\n+        (<%= course.subjects.count %>)\n+        <%= link_to t(:add_edit_text), supervisor_course_course_subjects_path(course) %>","path":"app/views/supervisor/courses/_course.html.erb","position":7,"original_position":7,"commit_id":"e8a73c95bb68a6a4692d1390ee1924097897f94b","original_commit_id":"e8a73c95bb68a6a4692d1390ee1924097897f94b","user":{"login":"chuanhtuan","id":5590771,"avatar_url":"https://avatars.githubusercontent.com/u/5590771?v=3","gravatar_id":"","url":"https://api.github.com/users/chuanhtuan","html_url":"https://github.com/chuanhtuan","followers_url":"https://api.github.com/users/chuanhtuan/followers","following_url":"https://api.github.com/users/chuanhtuan/following{/other_user}","gists_url":"https://api.github.com/users/chuanhtuan/gists{/gist_id}","starred_url":"https://api.github.com/users/chuanhtuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuanhtuan/subscriptions","organizations_url":"https://api.github.com/users/chuanhtuan/orgs","repos_url":"https://api.github.com/users/chuanhtuan/repos","events_url":"https://api.github.com/users/chuanhtuan/events{/privacy}","received_events_url":"https://api.github.com/users/chuanhtuan/received_events","type":"User","site_admin":false},"body":"nested course_subject, it means you have to use nested attribute for this feature","created_at":"2015-11-13T12:35:34Z","updated_at":"2015-11-13T12:35:34Z","html_url":"https://github.com/framgia/tms_38/pull/17#discussion_r44777537","pull_request_url":"https://api.github.com/repos/framgia/tms_38/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_38/pulls/comments/44777537"},"html":{"href":"https://github.com/framgia/tms_38/pull/17#discussion_r44777537"},"pull_request":{"href":"https://api.github.com/repos/framgia/tms_38/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/tms_38/pulls/17","id":50633880,"html_url":"https://github.com/framgia/tms_38/pull/17","diff_url":"https://github.com/framgia/tms_38/pull/17.diff","patch_url":"https://github.com/framgia/tms_38/pull/17.patch","issue_url":"https://api.github.com/repos/framgia/tms_38/issues/17","number":17,"state":"open","locked":false,"title":"add/edit subjects to course","user":{"login":"MuhammadTamzid","id":14922233,"avatar_url":"https://avatars.githubusercontent.com/u/14922233?v=3","gravatar_id":"","url":"https://api.github.com/users/MuhammadTamzid","html_url":"https://github.com/MuhammadTamzid","followers_url":"https://api.github.com/users/MuhammadTamzid/followers","following_url":"https://api.github.com/users/MuhammadTamzid/following{/other_user}","gists_url":"https://api.github.com/users/MuhammadTamzid/gists{/gist_id}","starred_url":"https://api.github.com/users/MuhammadTamzid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MuhammadTamzid/subscriptions","organizations_url":"https://api.github.com/users/MuhammadTamzid/orgs","repos_url":"https://api.github.com/users/MuhammadTamzid/repos","events_url":"https://api.github.com/users/MuhammadTamzid/events{/privacy}","received_events_url":"https://api.github.com/users/MuhammadTamzid/received_events","type":"User","site_admin":false},"body":"Dear Sir,\r\nHere we used 'collection_check_boxes'. And from your yesterdays comment of bd other groups project, we used create_user_subject method in CourseSubject model after_save.\r\nPlease review and let us know if there is any modification (bow)","created_at":"2015-11-13T12:05:03Z","updated_at":"2015-11-13T12:35:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8011212f16587376f824c6aa4fc80172e868107b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/tms_38/pulls/17/commits","review_comments_url":"https://api.github.com/repos/framgia/tms_38/pulls/17/comments","review_comment_url":"https://api.github.com/repos/framgia/tms_38/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/tms_38/issues/17/comments","statuses_url":"https://api.github.com/repos/framgia/tms_38/statuses/e8a73c95bb68a6a4692d1390ee1924097897f94b","head":{"label":"MuhammadTamzid:44367_add_edit_subjects_to_course","ref":"44367_add_edit_subjects_to_course","sha":"e8a73c95bb68a6a4692d1390ee1924097897f94b","user":{"login":"MuhammadTamzid","id":14922233,"avatar_url":"https://avatars.githubusercontent.com/u/14922233?v=3","gravatar_id":"","url":"https://api.github.com/users/MuhammadTamzid","html_url":"https://github.com/MuhammadTamzid","followers_url":"https://api.github.com/users/MuhammadTamzid/followers","following_url":"https://api.github.com/users/MuhammadTamzid/following{/other_user}","gists_url":"https://api.github.com/users/MuhammadTamzid/gists{/gist_id}","starred_url":"https://api.github.com/users/MuhammadTamzid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MuhammadTamzid/subscriptions","organizations_url":"https://api.github.com/users/MuhammadTamzid/orgs","repos_url":"https://api.github.com/users/MuhammadTamzid/repos","events_url":"https://api.github.com/users/MuhammadTamzid/events{/privacy}","received_events_url":"https://api.github.com/users/MuhammadTamzid/received_events","type":"User","site_admin":false},"repo":{"id":45591541,"name":"tms_38","full_name":"MuhammadTamzid/tms_38","owner":{"login":"MuhammadTamzid","id":14922233,"avatar_url":"https://avatars.githubusercontent.com/u/14922233?v=3","gravatar_id":"","url":"https://api.github.com/users/MuhammadTamzid","html_url":"https://github.com/MuhammadTamzid","followers_url":"https://api.github.com/users/MuhammadTamzid/followers","following_url":"https://api.github.com/users/MuhammadTamzid/following{/other_user}","gists_url":"https://api.github.com/users/MuhammadTamzid/gists{/gist_id}","starred_url":"https://api.github.com/users/MuhammadTamzid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MuhammadTamzid/subscriptions","organizations_url":"https://api.github.com/users/MuhammadTamzid/orgs","repos_url":"https://api.github.com/users/MuhammadTamzid/repos","events_url":"https://api.github.com/users/MuhammadTamzid/events{/privacy}","received_events_url":"https://api.github.com/users/MuhammadTamzid/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MuhammadTamzid/tms_38","description":"Framgia Training Management System (training)","fork":true,"url":"https://api.github.com/repos/MuhammadTamzid/tms_38","forks_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/forks","keys_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/teams","hooks_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/hooks","issue_events_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/issues/events{/number}","events_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/events","assignees_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/assignees{/user}","branches_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/branches{/branch}","tags_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/tags","blobs_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/git/refs{/sha}","trees_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/statuses/{sha}","languages_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/languages","stargazers_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/stargazers","contributors_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/contributors","subscribers_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/subscribers","subscription_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/subscription","commits_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/commits{/sha}","git_commits_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/git/commits{/sha}","comments_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/comments{/number}","issue_comment_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/issues/comments{/number}","contents_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/contents/{+path}","compare_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/merges","archive_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/downloads","issues_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/issues{/number}","pulls_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/pulls{/number}","milestones_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/milestones{/number}","notifications_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/labels{/name}","releases_url":"https://api.github.com/repos/MuhammadTamzid/tms_38/releases{/id}","created_at":"2015-11-05T06:09:28Z","updated_at":"2015-11-02T09:23:19Z","pushed_at":"2015-11-13T12:00:52Z","git_url":"git://github.com/MuhammadTamzid/tms_38.git","ssh_url":"git@github.com:MuhammadTamzid/tms_38.git","clone_url":"https://github.com/MuhammadTamzid/tms_38.git","svn_url":"https://github.com/MuhammadTamzid/tms_38","homepage":null,"size":124,"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":"99c2ffa8e5ebee684d9457fb626e79a23dcf75b1","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":45384495,"name":"tms_38","full_name":"framgia/tms_38","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_38","description":"Framgia Training Management System (training)","fork":false,"url":"https://api.github.com/repos/framgia/tms_38","forks_url":"https://api.github.com/repos/framgia/tms_38/forks","keys_url":"https://api.github.com/repos/framgia/tms_38/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/tms_38/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/tms_38/teams","hooks_url":"https://api.github.com/repos/framgia/tms_38/hooks","issue_events_url":"https://api.github.com/repos/framgia/tms_38/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/tms_38/events","assignees_url":"https://api.github.com/repos/framgia/tms_38/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/tms_38/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/tms_38/tags","blobs_url":"https://api.github.com/repos/framgia/tms_38/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/tms_38/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/tms_38/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/tms_38/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/tms_38/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/tms_38/languages","stargazers_url":"https://api.github.com/repos/framgia/tms_38/stargazers","contributors_url":"https://api.github.com/repos/framgia/tms_38/contributors","subscribers_url":"https://api.github.com/repos/framgia/tms_38/subscribers","subscription_url":"https://api.github.com/repos/framgia/tms_38/subscription","commits_url":"https://api.github.com/repos/framgia/tms_38/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/tms_38/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/tms_38/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/tms_38/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/tms_38/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/tms_38/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/tms_38/merges","archive_url":"https://api.github.com/repos/framgia/tms_38/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/tms_38/downloads","issues_url":"https://api.github.com/repos/framgia/tms_38/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/tms_38/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/tms_38/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/tms_38/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/tms_38/labels{/name}","releases_url":"https://api.github.com/repos/framgia/tms_38/releases{/id}","created_at":"2015-11-02T09:23:19Z","updated_at":"2015-11-02T09:23:19Z","pushed_at":"2015-11-13T12:05:05Z","git_url":"git://github.com/framgia/tms_38.git","ssh_url":"git@github.com:framgia/tms_38.git","clone_url":"https://github.com/framgia/tms_38.git","svn_url":"https://github.com/framgia/tms_38","homepage":null,"size":333,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_38/pulls/17"},"html":{"href":"https://github.com/framgia/tms_38/pull/17"},"issue":{"href":"https://api.github.com/repos/framgia/tms_38/issues/17"},"comments":{"href":"https://api.github.com/repos/framgia/tms_38/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/tms_38/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/tms_38/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/tms_38/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/tms_38/statuses/e8a73c95bb68a6a4692d1390ee1924097897f94b"}}}}