{"action":"created","comment":{"url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/pulls/comments/232181468","pull_request_review_id":173321976,"id":232181468,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjE4MTQ2OA==","diff_hunk":"@@ -0,0 +1,51 @@\n+class Admin::CoursesController < Admin::ApplicationController\n+  load_and_authorize_resource\n+  before_action :init_course, only: :new  \n+  before_action :load_all_course, only: :index\n+  before_action :load_course, only: %i(edit update destroy)\n+  \n+  def create\n+    @course = Course.new course_params\n+    @course.user_id = current_user.id\n+    flash[:success] = t \".create_success\" if @course.save","path":"app/controllers/admin/courses_controller.rb","position":10,"original_position":10,"commit_id":"5956526627699357660cc95bc9ad3b5a02b0c3ce","original_commit_id":"5956526627699357660cc95bc9ad3b5a02b0c3ce","user":{"login":"duchv2307","id":22351604,"node_id":"MDQ6VXNlcjIyMzUxNjA0","avatar_url":"https://avatars2.githubusercontent.com/u/22351604?v=4","gravatar_id":"","url":"https://api.github.com/users/duchv2307","html_url":"https://github.com/duchv2307","followers_url":"https://api.github.com/users/duchv2307/followers","following_url":"https://api.github.com/users/duchv2307/following{/other_user}","gists_url":"https://api.github.com/users/duchv2307/gists{/gist_id}","starred_url":"https://api.github.com/users/duchv2307/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duchv2307/subscriptions","organizations_url":"https://api.github.com/users/duchv2307/orgs","repos_url":"https://api.github.com/users/duchv2307/repos","events_url":"https://api.github.com/users/duchv2307/events{/privacy}","received_events_url":"https://api.github.com/users/duchv2307/received_events","type":"User","site_admin":false},"body":"create fail k có flash à ?","created_at":"2018-11-09T09:03:08Z","updated_at":"2018-11-09T09:05:34Z","html_url":"https://github.com/G1RubyTrainingTeam/ProjectTraining1/pull/18#discussion_r232181468","pull_request_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/pulls/18","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/pulls/comments/232181468"},"html":{"href":"https://github.com/G1RubyTrainingTeam/ProjectTraining1/pull/18#discussion_r232181468"},"pull_request":{"href":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/pulls/18","id":229605849,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5NjA1ODQ5","html_url":"https://github.com/G1RubyTrainingTeam/ProjectTraining1/pull/18","diff_url":"https://github.com/G1RubyTrainingTeam/ProjectTraining1/pull/18.diff","patch_url":"https://github.com/G1RubyTrainingTeam/ProjectTraining1/pull/18.patch","issue_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/issues/18","number":18,"state":"open","locked":false,"title":"refs task # Admin course","user":{"login":"phamanhtuanframgia","id":44598574,"node_id":"MDQ6VXNlcjQ0NTk4NTc0","avatar_url":"https://avatars0.githubusercontent.com/u/44598574?v=4","gravatar_id":"","url":"https://api.github.com/users/phamanhtuanframgia","html_url":"https://github.com/phamanhtuanframgia","followers_url":"https://api.github.com/users/phamanhtuanframgia/followers","following_url":"https://api.github.com/users/phamanhtuanframgia/following{/other_user}","gists_url":"https://api.github.com/users/phamanhtuanframgia/gists{/gist_id}","starred_url":"https://api.github.com/users/phamanhtuanframgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phamanhtuanframgia/subscriptions","organizations_url":"https://api.github.com/users/phamanhtuanframgia/orgs","repos_url":"https://api.github.com/users/phamanhtuanframgia/repos","events_url":"https://api.github.com/users/phamanhtuanframgia/events{/privacy}","received_events_url":"https://api.github.com/users/phamanhtuanframgia/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-09T07:06:21Z","updated_at":"2018-11-09T09:05:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2bb9f502b1f18cc850941302eda95301320409e3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/pulls/18/commits","review_comments_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/pulls/18/comments","review_comment_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/issues/18/comments","statuses_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/statuses/5956526627699357660cc95bc9ad3b5a02b0c3ce","head":{"label":"phamanhtuanframgia:admin-course","ref":"admin-course","sha":"5956526627699357660cc95bc9ad3b5a02b0c3ce","user":{"login":"phamanhtuanframgia","id":44598574,"node_id":"MDQ6VXNlcjQ0NTk4NTc0","avatar_url":"https://avatars0.githubusercontent.com/u/44598574?v=4","gravatar_id":"","url":"https://api.github.com/users/phamanhtuanframgia","html_url":"https://github.com/phamanhtuanframgia","followers_url":"https://api.github.com/users/phamanhtuanframgia/followers","following_url":"https://api.github.com/users/phamanhtuanframgia/following{/other_user}","gists_url":"https://api.github.com/users/phamanhtuanframgia/gists{/gist_id}","starred_url":"https://api.github.com/users/phamanhtuanframgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phamanhtuanframgia/subscriptions","organizations_url":"https://api.github.com/users/phamanhtuanframgia/orgs","repos_url":"https://api.github.com/users/phamanhtuanframgia/repos","events_url":"https://api.github.com/users/phamanhtuanframgia/events{/privacy}","received_events_url":"https://api.github.com/users/phamanhtuanframgia/received_events","type":"User","site_admin":false},"repo":{"id":155804813,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU4MDQ4MTM=","name":"ProjectTraining1","full_name":"phamanhtuanframgia/ProjectTraining1","private":false,"owner":{"login":"phamanhtuanframgia","id":44598574,"node_id":"MDQ6VXNlcjQ0NTk4NTc0","avatar_url":"https://avatars0.githubusercontent.com/u/44598574?v=4","gravatar_id":"","url":"https://api.github.com/users/phamanhtuanframgia","html_url":"https://github.com/phamanhtuanframgia","followers_url":"https://api.github.com/users/phamanhtuanframgia/followers","following_url":"https://api.github.com/users/phamanhtuanframgia/following{/other_user}","gists_url":"https://api.github.com/users/phamanhtuanframgia/gists{/gist_id}","starred_url":"https://api.github.com/users/phamanhtuanframgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phamanhtuanframgia/subscriptions","organizations_url":"https://api.github.com/users/phamanhtuanframgia/orgs","repos_url":"https://api.github.com/users/phamanhtuanframgia/repos","events_url":"https://api.github.com/users/phamanhtuanframgia/events{/privacy}","received_events_url":"https://api.github.com/users/phamanhtuanframgia/received_events","type":"User","site_admin":false},"html_url":"https://github.com/phamanhtuanframgia/ProjectTraining1","description":"This is Project for Training","fork":true,"url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1","forks_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/forks","keys_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/teams","hooks_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/hooks","issue_events_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/issues/events{/number}","events_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/events","assignees_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/assignees{/user}","branches_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/branches{/branch}","tags_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/tags","blobs_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/git/refs{/sha}","trees_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/statuses/{sha}","languages_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/languages","stargazers_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/stargazers","contributors_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/contributors","subscribers_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/subscribers","subscription_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/subscription","commits_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/commits{/sha}","git_commits_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/git/commits{/sha}","comments_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/comments{/number}","issue_comment_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/issues/comments{/number}","contents_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/contents/{+path}","compare_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/merges","archive_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/downloads","issues_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/issues{/number}","pulls_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/pulls{/number}","milestones_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/milestones{/number}","notifications_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/labels{/name}","releases_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/releases{/id}","deployments_url":"https://api.github.com/repos/phamanhtuanframgia/ProjectTraining1/deployments","created_at":"2018-11-02T02:42:16Z","updated_at":"2018-11-02T02:42:18Z","pushed_at":"2018-11-09T08:52:30Z","git_url":"git://github.com/phamanhtuanframgia/ProjectTraining1.git","ssh_url":"git@github.com:phamanhtuanframgia/ProjectTraining1.git","clone_url":"https://github.com/phamanhtuanframgia/ProjectTraining1.git","svn_url":"https://github.com/phamanhtuanframgia/ProjectTraining1","homepage":null,"size":427,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"G1RubyTrainingTeam:master","ref":"master","sha":"c228c40de396e9ae6cb4df040e0fec5153df5ee5","user":{"login":"G1RubyTrainingTeam","id":44454647,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0NDU0NjQ3","avatar_url":"https://avatars2.githubusercontent.com/u/44454647?v=4","gravatar_id":"","url":"https://api.github.com/users/G1RubyTrainingTeam","html_url":"https://github.com/G1RubyTrainingTeam","followers_url":"https://api.github.com/users/G1RubyTrainingTeam/followers","following_url":"https://api.github.com/users/G1RubyTrainingTeam/following{/other_user}","gists_url":"https://api.github.com/users/G1RubyTrainingTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/G1RubyTrainingTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/G1RubyTrainingTeam/subscriptions","organizations_url":"https://api.github.com/users/G1RubyTrainingTeam/orgs","repos_url":"https://api.github.com/users/G1RubyTrainingTeam/repos","events_url":"https://api.github.com/users/G1RubyTrainingTeam/events{/privacy}","received_events_url":"https://api.github.com/users/G1RubyTrainingTeam/received_events","type":"Organization","site_admin":false},"repo":{"id":154599034,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ1OTkwMzQ=","name":"ProjectTraining1","full_name":"G1RubyTrainingTeam/ProjectTraining1","private":false,"owner":{"login":"G1RubyTrainingTeam","id":44454647,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0NDU0NjQ3","avatar_url":"https://avatars2.githubusercontent.com/u/44454647?v=4","gravatar_id":"","url":"https://api.github.com/users/G1RubyTrainingTeam","html_url":"https://github.com/G1RubyTrainingTeam","followers_url":"https://api.github.com/users/G1RubyTrainingTeam/followers","following_url":"https://api.github.com/users/G1RubyTrainingTeam/following{/other_user}","gists_url":"https://api.github.com/users/G1RubyTrainingTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/G1RubyTrainingTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/G1RubyTrainingTeam/subscriptions","organizations_url":"https://api.github.com/users/G1RubyTrainingTeam/orgs","repos_url":"https://api.github.com/users/G1RubyTrainingTeam/repos","events_url":"https://api.github.com/users/G1RubyTrainingTeam/events{/privacy}","received_events_url":"https://api.github.com/users/G1RubyTrainingTeam/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/G1RubyTrainingTeam/ProjectTraining1","description":"This is Project for Training","fork":false,"url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1","forks_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/forks","keys_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/teams","hooks_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/hooks","issue_events_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/issues/events{/number}","events_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/events","assignees_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/assignees{/user}","branches_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/branches{/branch}","tags_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/tags","blobs_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/git/refs{/sha}","trees_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/statuses/{sha}","languages_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/languages","stargazers_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/stargazers","contributors_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/contributors","subscribers_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/subscribers","subscription_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/subscription","commits_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/commits{/sha}","git_commits_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/git/commits{/sha}","comments_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/comments{/number}","issue_comment_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/issues/comments{/number}","contents_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/contents/{+path}","compare_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/merges","archive_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/downloads","issues_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/issues{/number}","pulls_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/pulls{/number}","milestones_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/milestones{/number}","notifications_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/labels{/name}","releases_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/releases{/id}","deployments_url":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/deployments","created_at":"2018-10-25T02:36:34Z","updated_at":"2018-11-09T09:04:30Z","pushed_at":"2018-11-09T09:04:28Z","git_url":"git://github.com/G1RubyTrainingTeam/ProjectTraining1.git","ssh_url":"git@github.com:G1RubyTrainingTeam/ProjectTraining1.git","clone_url":"https://github.com/G1RubyTrainingTeam/ProjectTraining1.git","svn_url":"https://github.com/G1RubyTrainingTeam/ProjectTraining1","homepage":null,"size":106,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/pulls/18"},"html":{"href":"https://github.com/G1RubyTrainingTeam/ProjectTraining1/pull/18"},"issue":{"href":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/issues/18"},"comments":{"href":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/G1RubyTrainingTeam/ProjectTraining1/statuses/5956526627699357660cc95bc9ad3b5a02b0c3ce"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"duchv2307"}}