{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/tms_29/pulls/comments/34869823","id":34869823,"diff_hunk":"@@ -0,0 +1,21 @@\n+class Admin::CoursesController < ApplicationController\n+  def new\n+    @course = Course.new\n+    @subjects = Subject.all\n+  end\n+\n+  def create\n+    @course = Course.new course_params\n+    if @course.save\n+      flash[:success] = t\"messages.admin.create.success\"","path":"app/controllers/admin/courses_controller.rb","position":10,"original_position":10,"commit_id":"b7c94f62de02a63aa1f1a9d42d383a08f166effe","original_commit_id":"b7c94f62de02a63aa1f1a9d42d383a08f166effe","user":{"login":"ThuBM","id":5279620,"avatar_url":"https://avatars.githubusercontent.com/u/5279620?v=3","gravatar_id":"","url":"https://api.github.com/users/ThuBM","html_url":"https://github.com/ThuBM","followers_url":"https://api.github.com/users/ThuBM/followers","following_url":"https://api.github.com/users/ThuBM/following{/other_user}","gists_url":"https://api.github.com/users/ThuBM/gists{/gist_id}","starred_url":"https://api.github.com/users/ThuBM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThuBM/subscriptions","organizations_url":"https://api.github.com/users/ThuBM/orgs","repos_url":"https://api.github.com/users/ThuBM/repos","events_url":"https://api.github.com/users/ThuBM/events{/privacy}","received_events_url":"https://api.github.com/users/ThuBM/received_events","type":"User","site_admin":false},"body":"add space after t","created_at":"2015-07-17T08:09:48Z","updated_at":"2015-07-17T08:09:48Z","html_url":"https://github.com/framgia/tms_29/pull/9#discussion_r34869823","pull_request_url":"https://api.github.com/repos/framgia/tms_29/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_29/pulls/comments/34869823"},"html":{"href":"https://github.com/framgia/tms_29/pull/9#discussion_r34869823"},"pull_request":{"href":"https://api.github.com/repos/framgia/tms_29/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/tms_29/pulls/9","id":40205210,"html_url":"https://github.com/framgia/tms_29/pull/9","diff_url":"https://github.com/framgia/tms_29/pull/9.diff","patch_url":"https://github.com/framgia/tms_29/pull/9.patch","issue_url":"https://api.github.com/repos/framgia/tms_29/issues/9","number":9,"state":"open","locked":false,"title":"Finish admin-create-course","user":{"login":"binhthanhnguyen","id":12368804,"avatar_url":"https://avatars.githubusercontent.com/u/12368804?v=3","gravatar_id":"","url":"https://api.github.com/users/binhthanhnguyen","html_url":"https://github.com/binhthanhnguyen","followers_url":"https://api.github.com/users/binhthanhnguyen/followers","following_url":"https://api.github.com/users/binhthanhnguyen/following{/other_user}","gists_url":"https://api.github.com/users/binhthanhnguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/binhthanhnguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binhthanhnguyen/subscriptions","organizations_url":"https://api.github.com/users/binhthanhnguyen/orgs","repos_url":"https://api.github.com/users/binhthanhnguyen/repos","events_url":"https://api.github.com/users/binhthanhnguyen/events{/privacy}","received_events_url":"https://api.github.com/users/binhthanhnguyen/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-17T07:05:09Z","updated_at":"2015-07-17T08:09:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d022ea7f2769fd98f33c22cb29011cfe72cb69d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/tms_29/pulls/9/commits","review_comments_url":"https://api.github.com/repos/framgia/tms_29/pulls/9/comments","review_comment_url":"https://api.github.com/repos/framgia/tms_29/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/tms_29/issues/9/comments","statuses_url":"https://api.github.com/repos/framgia/tms_29/statuses/b7c94f62de02a63aa1f1a9d42d383a08f166effe","head":{"label":"binhthanhnguyen:admin-create-courses","ref":"admin-create-courses","sha":"b7c94f62de02a63aa1f1a9d42d383a08f166effe","user":{"login":"binhthanhnguyen","id":12368804,"avatar_url":"https://avatars.githubusercontent.com/u/12368804?v=3","gravatar_id":"","url":"https://api.github.com/users/binhthanhnguyen","html_url":"https://github.com/binhthanhnguyen","followers_url":"https://api.github.com/users/binhthanhnguyen/followers","following_url":"https://api.github.com/users/binhthanhnguyen/following{/other_user}","gists_url":"https://api.github.com/users/binhthanhnguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/binhthanhnguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binhthanhnguyen/subscriptions","organizations_url":"https://api.github.com/users/binhthanhnguyen/orgs","repos_url":"https://api.github.com/users/binhthanhnguyen/repos","events_url":"https://api.github.com/users/binhthanhnguyen/events{/privacy}","received_events_url":"https://api.github.com/users/binhthanhnguyen/received_events","type":"User","site_admin":false},"repo":{"id":39168856,"name":"tms_29","full_name":"binhthanhnguyen/tms_29","owner":{"login":"binhthanhnguyen","id":12368804,"avatar_url":"https://avatars.githubusercontent.com/u/12368804?v=3","gravatar_id":"","url":"https://api.github.com/users/binhthanhnguyen","html_url":"https://github.com/binhthanhnguyen","followers_url":"https://api.github.com/users/binhthanhnguyen/followers","following_url":"https://api.github.com/users/binhthanhnguyen/following{/other_user}","gists_url":"https://api.github.com/users/binhthanhnguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/binhthanhnguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binhthanhnguyen/subscriptions","organizations_url":"https://api.github.com/users/binhthanhnguyen/orgs","repos_url":"https://api.github.com/users/binhthanhnguyen/repos","events_url":"https://api.github.com/users/binhthanhnguyen/events{/privacy}","received_events_url":"https://api.github.com/users/binhthanhnguyen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/binhthanhnguyen/tms_29","description":"Framgia Training Management System (training)","fork":true,"url":"https://api.github.com/repos/binhthanhnguyen/tms_29","forks_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/forks","keys_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/keys{/key_id}","collaborators_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/teams","hooks_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/hooks","issue_events_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/issues/events{/number}","events_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/events","assignees_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/assignees{/user}","branches_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/branches{/branch}","tags_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/tags","blobs_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/git/refs{/sha}","trees_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/git/trees{/sha}","statuses_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/statuses/{sha}","languages_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/languages","stargazers_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/stargazers","contributors_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/contributors","subscribers_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/subscribers","subscription_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/subscription","commits_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/commits{/sha}","git_commits_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/git/commits{/sha}","comments_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/comments{/number}","issue_comment_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/issues/comments{/number}","contents_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/contents/{+path}","compare_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/compare/{base}...{head}","merges_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/merges","archive_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/downloads","issues_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/issues{/number}","pulls_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/pulls{/number}","milestones_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/milestones{/number}","notifications_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/labels{/name}","releases_url":"https://api.github.com/repos/binhthanhnguyen/tms_29/releases{/id}","created_at":"2015-07-16T01:00:44Z","updated_at":"2015-07-15T06:23:46Z","pushed_at":"2015-07-17T07:56:32Z","git_url":"git://github.com/binhthanhnguyen/tms_29.git","ssh_url":"git@github.com:binhthanhnguyen/tms_29.git","clone_url":"https://github.com/binhthanhnguyen/tms_29.git","svn_url":"https://github.com/binhthanhnguyen/tms_29","homepage":null,"size":1452,"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":"dd6c0cb8848311a6d243eb6fe5de3f2a91c9a748","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":39120102,"name":"tms_29","full_name":"framgia/tms_29","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_29","description":"Framgia Training Management System (training)","fork":false,"url":"https://api.github.com/repos/framgia/tms_29","forks_url":"https://api.github.com/repos/framgia/tms_29/forks","keys_url":"https://api.github.com/repos/framgia/tms_29/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/tms_29/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/tms_29/teams","hooks_url":"https://api.github.com/repos/framgia/tms_29/hooks","issue_events_url":"https://api.github.com/repos/framgia/tms_29/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/tms_29/events","assignees_url":"https://api.github.com/repos/framgia/tms_29/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/tms_29/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/tms_29/tags","blobs_url":"https://api.github.com/repos/framgia/tms_29/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/tms_29/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/tms_29/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/tms_29/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/tms_29/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/tms_29/languages","stargazers_url":"https://api.github.com/repos/framgia/tms_29/stargazers","contributors_url":"https://api.github.com/repos/framgia/tms_29/contributors","subscribers_url":"https://api.github.com/repos/framgia/tms_29/subscribers","subscription_url":"https://api.github.com/repos/framgia/tms_29/subscription","commits_url":"https://api.github.com/repos/framgia/tms_29/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/tms_29/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/tms_29/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/tms_29/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/tms_29/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/tms_29/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/tms_29/merges","archive_url":"https://api.github.com/repos/framgia/tms_29/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/tms_29/downloads","issues_url":"https://api.github.com/repos/framgia/tms_29/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/tms_29/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/tms_29/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/tms_29/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/tms_29/labels{/name}","releases_url":"https://api.github.com/repos/framgia/tms_29/releases{/id}","created_at":"2015-07-15T06:23:46Z","updated_at":"2015-07-15T06:23:46Z","pushed_at":"2015-07-17T07:56:32Z","git_url":"git://github.com/framgia/tms_29.git","ssh_url":"git@github.com:framgia/tms_29.git","clone_url":"https://github.com/framgia/tms_29.git","svn_url":"https://github.com/framgia/tms_29","homepage":null,"size":1680,"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":3,"forks":3,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_29/pulls/9"},"html":{"href":"https://github.com/framgia/tms_29/pull/9"},"issue":{"href":"https://api.github.com/repos/framgia/tms_29/issues/9"},"comments":{"href":"https://api.github.com/repos/framgia/tms_29/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/tms_29/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/tms_29/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/tms_29/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/tms_29/statuses/b7c94f62de02a63aa1f1a9d42d383a08f166effe"}}}}