{"action":"created","comment":{"url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/pulls/comments/232551580","pull_request_review_id":173771778,"id":232551580,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjU1MTU4MA==","diff_hunk":"@@ -0,0 +1,26 @@\n+class CurriculumVitaesController < ApplicationController\n+  before_action :user_signed_in?, only: %i(new create)\n+\n+  def new\n+    @curriculum_vitae = current_user.curriculum_vitaes.new\n+    @curriculum_vitae.curriculum_vitae_details.build\n+  end\n+\n+  def create\n+    @curriculum_vitae = current_user.curriculum_vitaes.build cv_params\n+    if @curriculum_vitae.save\n+      flash[:success] = t \".success\"\n+      redirect_to @curriculum_vitae\n+    else\n+      flash[:danger] = t \".failed\"\n+      render :new\n+    end\n+  end\n+\n+  private\n+\n+  def cv_params\n+    params.require(:curriculum_vitae).permit\n+    CurriculumVitae::CURRICULUMVITAEPARAMS","path":"app/controllers/curriculum_vitaes_controller.rb","position":24,"original_position":24,"commit_id":"f1afbc1fa6b88846175ee60c0a2c54fbbd3c8ba1","original_commit_id":"f1afbc1fa6b88846175ee60c0a2c54fbbd3c8ba1","user":{"login":"baclv","id":27680484,"node_id":"MDQ6VXNlcjI3NjgwNDg0","avatar_url":"https://avatars1.githubusercontent.com/u/27680484?v=4","gravatar_id":"","url":"https://api.github.com/users/baclv","html_url":"https://github.com/baclv","followers_url":"https://api.github.com/users/baclv/followers","following_url":"https://api.github.com/users/baclv/following{/other_user}","gists_url":"https://api.github.com/users/baclv/gists{/gist_id}","starred_url":"https://api.github.com/users/baclv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baclv/subscriptions","organizations_url":"https://api.github.com/users/baclv/orgs","repos_url":"https://api.github.com/users/baclv/repos","events_url":"https://api.github.com/users/baclv/events{/privacy}","received_events_url":"https://api.github.com/users/baclv/received_events","type":"User","site_admin":false},"body":"viết trên cùng 1 dòng chứ em?","created_at":"2018-11-12T07:13:37Z","updated_at":"2018-11-12T07:13:37Z","html_url":"https://github.com/awesome-academy/ruby_job_fair_02/pull/7#discussion_r232551580","pull_request_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/pulls/7","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/pulls/comments/232551580"},"html":{"href":"https://github.com/awesome-academy/ruby_job_fair_02/pull/7#discussion_r232551580"},"pull_request":{"href":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/pulls/7","id":230007226,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwMDA3MjI2","html_url":"https://github.com/awesome-academy/ruby_job_fair_02/pull/7","diff_url":"https://github.com/awesome-academy/ruby_job_fair_02/pull/7.diff","patch_url":"https://github.com/awesome-academy/ruby_job_fair_02/pull/7.patch","issue_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/issues/7","number":7,"state":"open","locked":false,"title":"Ref task #3391 Create CV","user":{"login":"buingocmay","id":25860837,"node_id":"MDQ6VXNlcjI1ODYwODM3","avatar_url":"https://avatars2.githubusercontent.com/u/25860837?v=4","gravatar_id":"","url":"https://api.github.com/users/buingocmay","html_url":"https://github.com/buingocmay","followers_url":"https://api.github.com/users/buingocmay/followers","following_url":"https://api.github.com/users/buingocmay/following{/other_user}","gists_url":"https://api.github.com/users/buingocmay/gists{/gist_id}","starred_url":"https://api.github.com/users/buingocmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buingocmay/subscriptions","organizations_url":"https://api.github.com/users/buingocmay/orgs","repos_url":"https://api.github.com/users/buingocmay/repos","events_url":"https://api.github.com/users/buingocmay/events{/privacy}","received_events_url":"https://api.github.com/users/buingocmay/received_events","type":"User","site_admin":false},"body":"![image](https://user-images.githubusercontent.com/25860837/48324750-d6395600-e664-11e8-8048-e57d84632d98.png)\r\n","created_at":"2018-11-12T03:22:24Z","updated_at":"2018-11-12T07:13:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ce40e61061e6c19093af562ebb80860fdcadd06","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/pulls/7/commits","review_comments_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/pulls/7/comments","review_comment_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/issues/7/comments","statuses_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/statuses/f1afbc1fa6b88846175ee60c0a2c54fbbd3c8ba1","head":{"label":"buingocmay:task/3391","ref":"task/3391","sha":"f1afbc1fa6b88846175ee60c0a2c54fbbd3c8ba1","user":{"login":"buingocmay","id":25860837,"node_id":"MDQ6VXNlcjI1ODYwODM3","avatar_url":"https://avatars2.githubusercontent.com/u/25860837?v=4","gravatar_id":"","url":"https://api.github.com/users/buingocmay","html_url":"https://github.com/buingocmay","followers_url":"https://api.github.com/users/buingocmay/followers","following_url":"https://api.github.com/users/buingocmay/following{/other_user}","gists_url":"https://api.github.com/users/buingocmay/gists{/gist_id}","starred_url":"https://api.github.com/users/buingocmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buingocmay/subscriptions","organizations_url":"https://api.github.com/users/buingocmay/orgs","repos_url":"https://api.github.com/users/buingocmay/repos","events_url":"https://api.github.com/users/buingocmay/events{/privacy}","received_events_url":"https://api.github.com/users/buingocmay/received_events","type":"User","site_admin":false},"repo":{"id":156521334,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY1MjEzMzQ=","name":"ruby_job_fair_02","full_name":"buingocmay/ruby_job_fair_02","private":false,"owner":{"login":"buingocmay","id":25860837,"node_id":"MDQ6VXNlcjI1ODYwODM3","avatar_url":"https://avatars2.githubusercontent.com/u/25860837?v=4","gravatar_id":"","url":"https://api.github.com/users/buingocmay","html_url":"https://github.com/buingocmay","followers_url":"https://api.github.com/users/buingocmay/followers","following_url":"https://api.github.com/users/buingocmay/following{/other_user}","gists_url":"https://api.github.com/users/buingocmay/gists{/gist_id}","starred_url":"https://api.github.com/users/buingocmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buingocmay/subscriptions","organizations_url":"https://api.github.com/users/buingocmay/orgs","repos_url":"https://api.github.com/users/buingocmay/repos","events_url":"https://api.github.com/users/buingocmay/events{/privacy}","received_events_url":"https://api.github.com/users/buingocmay/received_events","type":"User","site_admin":false},"html_url":"https://github.com/buingocmay/ruby_job_fair_02","description":null,"fork":true,"url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02","forks_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/forks","keys_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/keys{/key_id}","collaborators_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/teams","hooks_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/hooks","issue_events_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/issues/events{/number}","events_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/events","assignees_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/assignees{/user}","branches_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/branches{/branch}","tags_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/tags","blobs_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/git/refs{/sha}","trees_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/git/trees{/sha}","statuses_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/statuses/{sha}","languages_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/languages","stargazers_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/stargazers","contributors_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/contributors","subscribers_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/subscribers","subscription_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/subscription","commits_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/commits{/sha}","git_commits_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/git/commits{/sha}","comments_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/comments{/number}","issue_comment_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/issues/comments{/number}","contents_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/contents/{+path}","compare_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/compare/{base}...{head}","merges_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/merges","archive_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/downloads","issues_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/issues{/number}","pulls_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/pulls{/number}","milestones_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/milestones{/number}","notifications_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/labels{/name}","releases_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/releases{/id}","deployments_url":"https://api.github.com/repos/buingocmay/ruby_job_fair_02/deployments","created_at":"2018-11-07T09:22:51Z","updated_at":"2018-11-07T09:22:53Z","pushed_at":"2018-11-12T07:11:19Z","git_url":"git://github.com/buingocmay/ruby_job_fair_02.git","ssh_url":"git@github.com:buingocmay/ruby_job_fair_02.git","clone_url":"https://github.com/buingocmay/ruby_job_fair_02.git","svn_url":"https://github.com/buingocmay/ruby_job_fair_02","homepage":null,"size":272,"stargazers_count":0,"watchers_count":0,"language":null,"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":"awesome-academy:master","ref":"master","sha":"60f12e6c7a127d1c76384ec072c115efb8f20761","user":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"repo":{"id":156334895,"node_id":"MDEwOlJlcG9zaXRvcnkxNTYzMzQ4OTU=","name":"ruby_job_fair_02","full_name":"awesome-academy/ruby_job_fair_02","private":false,"owner":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/awesome-academy/ruby_job_fair_02","description":null,"fork":false,"url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02","forks_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/forks","keys_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/teams","hooks_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/hooks","issue_events_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/issues/events{/number}","events_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/events","assignees_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/assignees{/user}","branches_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/branches{/branch}","tags_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/tags","blobs_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/git/refs{/sha}","trees_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/statuses/{sha}","languages_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/languages","stargazers_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/stargazers","contributors_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/contributors","subscribers_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/subscribers","subscription_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/subscription","commits_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/commits{/sha}","git_commits_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/git/commits{/sha}","comments_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/comments{/number}","issue_comment_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/issues/comments{/number}","contents_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/contents/{+path}","compare_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/merges","archive_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/downloads","issues_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/issues{/number}","pulls_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/pulls{/number}","milestones_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/milestones{/number}","notifications_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/labels{/name}","releases_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/releases{/id}","deployments_url":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/deployments","created_at":"2018-11-06T06:13:21Z","updated_at":"2018-11-12T04:35:40Z","pushed_at":"2018-11-12T07:11:20Z","git_url":"git://github.com/awesome-academy/ruby_job_fair_02.git","ssh_url":"git@github.com:awesome-academy/ruby_job_fair_02.git","clone_url":"https://github.com/awesome-academy/ruby_job_fair_02.git","svn_url":"https://github.com/awesome-academy/ruby_job_fair_02","homepage":null,"size":217,"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":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/pulls/7"},"html":{"href":"https://github.com/awesome-academy/ruby_job_fair_02/pull/7"},"issue":{"href":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/issues/7"},"comments":{"href":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/awesome-academy/ruby_job_fair_02/statuses/f1afbc1fa6b88846175ee60c0a2c54fbbd3c8ba1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"baclv"}}