{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fts_32/pulls/comments/32605458","id":32605458,"diff_hunk":"@@ -0,0 +1,14 @@\n+class ExamsController < ApplicationController\n+  def create\n+    @exam = Exam.new exam_params\n+    unless @exam.save\n+      flash[:danger] = t \"flashs.invalid\"\n+    end\n+    redirect_to root_url\n+  end\n+\n+  private\n+  def exam_params\n+    params.require(:exam).permit :user_id, :category_id","path":"app/controllers/exams_controller.rb","position":12,"original_position":12,"commit_id":"deef1e911378e089741f58c8d17448b67ca7d55b","original_commit_id":"deef1e911378e089741f58c8d17448b67ca7d55b","user":{"login":"HorNorin","id":12245548,"avatar_url":"https://avatars.githubusercontent.com/u/12245548?v=3","gravatar_id":"","url":"https://api.github.com/users/HorNorin","html_url":"https://github.com/HorNorin","followers_url":"https://api.github.com/users/HorNorin/followers","following_url":"https://api.github.com/users/HorNorin/following{/other_user}","gists_url":"https://api.github.com/users/HorNorin/gists{/gist_id}","starred_url":"https://api.github.com/users/HorNorin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HorNorin/subscriptions","organizations_url":"https://api.github.com/users/HorNorin/orgs","repos_url":"https://api.github.com/users/HorNorin/repos","events_url":"https://api.github.com/users/HorNorin/events{/privacy}","received_events_url":"https://api.github.com/users/HorNorin/received_events","type":"User","site_admin":false},"body":"can remove `user_id`","created_at":"2015-06-17T08:41:50Z","updated_at":"2015-06-17T08:41:50Z","html_url":"https://github.com/framgia/fts_32/pull/3#discussion_r32605458","pull_request_url":"https://api.github.com/repos/framgia/fts_32/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/framgia/fts_32/pulls/comments/32605458"},"html":{"href":"https://github.com/framgia/fts_32/pull/3#discussion_r32605458"},"pull_request":{"href":"https://api.github.com/repos/framgia/fts_32/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fts_32/pulls/3","id":37876411,"html_url":"https://github.com/framgia/fts_32/pull/3","diff_url":"https://github.com/framgia/fts_32/pull/3.diff","patch_url":"https://github.com/framgia/fts_32/pull/3.patch","issue_url":"https://api.github.com/repos/framgia/fts_32/issues/3","number":3,"state":"open","locked":false,"title":"Select Subject and start new examination","user":{"login":"yongsokheng","id":9548057,"avatar_url":"https://avatars.githubusercontent.com/u/9548057?v=3","gravatar_id":"","url":"https://api.github.com/users/yongsokheng","html_url":"https://github.com/yongsokheng","followers_url":"https://api.github.com/users/yongsokheng/followers","following_url":"https://api.github.com/users/yongsokheng/following{/other_user}","gists_url":"https://api.github.com/users/yongsokheng/gists{/gist_id}","starred_url":"https://api.github.com/users/yongsokheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yongsokheng/subscriptions","organizations_url":"https://api.github.com/users/yongsokheng/orgs","repos_url":"https://api.github.com/users/yongsokheng/repos","events_url":"https://api.github.com/users/yongsokheng/events{/privacy}","received_events_url":"https://api.github.com/users/yongsokheng/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-17T08:27:07Z","updated_at":"2015-06-17T08:41:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35c66f493b3d0d85fc9c6fd4c4f5b8ccd313bf49","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fts_32/pulls/3/commits","review_comments_url":"https://api.github.com/repos/framgia/fts_32/pulls/3/comments","review_comment_url":"https://api.github.com/repos/framgia/fts_32/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fts_32/issues/3/comments","statuses_url":"https://api.github.com/repos/framgia/fts_32/statuses/deef1e911378e089741f58c8d17448b67ca7d55b","head":{"label":"yongsokheng:examinations","ref":"examinations","sha":"deef1e911378e089741f58c8d17448b67ca7d55b","user":{"login":"yongsokheng","id":9548057,"avatar_url":"https://avatars.githubusercontent.com/u/9548057?v=3","gravatar_id":"","url":"https://api.github.com/users/yongsokheng","html_url":"https://github.com/yongsokheng","followers_url":"https://api.github.com/users/yongsokheng/followers","following_url":"https://api.github.com/users/yongsokheng/following{/other_user}","gists_url":"https://api.github.com/users/yongsokheng/gists{/gist_id}","starred_url":"https://api.github.com/users/yongsokheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yongsokheng/subscriptions","organizations_url":"https://api.github.com/users/yongsokheng/orgs","repos_url":"https://api.github.com/users/yongsokheng/repos","events_url":"https://api.github.com/users/yongsokheng/events{/privacy}","received_events_url":"https://api.github.com/users/yongsokheng/received_events","type":"User","site_admin":false},"repo":{"id":37565737,"name":"fts_32","full_name":"yongsokheng/fts_32","owner":{"login":"yongsokheng","id":9548057,"avatar_url":"https://avatars.githubusercontent.com/u/9548057?v=3","gravatar_id":"","url":"https://api.github.com/users/yongsokheng","html_url":"https://github.com/yongsokheng","followers_url":"https://api.github.com/users/yongsokheng/followers","following_url":"https://api.github.com/users/yongsokheng/following{/other_user}","gists_url":"https://api.github.com/users/yongsokheng/gists{/gist_id}","starred_url":"https://api.github.com/users/yongsokheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yongsokheng/subscriptions","organizations_url":"https://api.github.com/users/yongsokheng/orgs","repos_url":"https://api.github.com/users/yongsokheng/repos","events_url":"https://api.github.com/users/yongsokheng/events{/privacy}","received_events_url":"https://api.github.com/users/yongsokheng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yongsokheng/fts_32","description":"Framgia Test System (training)","fork":true,"url":"https://api.github.com/repos/yongsokheng/fts_32","forks_url":"https://api.github.com/repos/yongsokheng/fts_32/forks","keys_url":"https://api.github.com/repos/yongsokheng/fts_32/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yongsokheng/fts_32/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yongsokheng/fts_32/teams","hooks_url":"https://api.github.com/repos/yongsokheng/fts_32/hooks","issue_events_url":"https://api.github.com/repos/yongsokheng/fts_32/issues/events{/number}","events_url":"https://api.github.com/repos/yongsokheng/fts_32/events","assignees_url":"https://api.github.com/repos/yongsokheng/fts_32/assignees{/user}","branches_url":"https://api.github.com/repos/yongsokheng/fts_32/branches{/branch}","tags_url":"https://api.github.com/repos/yongsokheng/fts_32/tags","blobs_url":"https://api.github.com/repos/yongsokheng/fts_32/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yongsokheng/fts_32/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yongsokheng/fts_32/git/refs{/sha}","trees_url":"https://api.github.com/repos/yongsokheng/fts_32/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yongsokheng/fts_32/statuses/{sha}","languages_url":"https://api.github.com/repos/yongsokheng/fts_32/languages","stargazers_url":"https://api.github.com/repos/yongsokheng/fts_32/stargazers","contributors_url":"https://api.github.com/repos/yongsokheng/fts_32/contributors","subscribers_url":"https://api.github.com/repos/yongsokheng/fts_32/subscribers","subscription_url":"https://api.github.com/repos/yongsokheng/fts_32/subscription","commits_url":"https://api.github.com/repos/yongsokheng/fts_32/commits{/sha}","git_commits_url":"https://api.github.com/repos/yongsokheng/fts_32/git/commits{/sha}","comments_url":"https://api.github.com/repos/yongsokheng/fts_32/comments{/number}","issue_comment_url":"https://api.github.com/repos/yongsokheng/fts_32/issues/comments{/number}","contents_url":"https://api.github.com/repos/yongsokheng/fts_32/contents/{+path}","compare_url":"https://api.github.com/repos/yongsokheng/fts_32/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yongsokheng/fts_32/merges","archive_url":"https://api.github.com/repos/yongsokheng/fts_32/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yongsokheng/fts_32/downloads","issues_url":"https://api.github.com/repos/yongsokheng/fts_32/issues{/number}","pulls_url":"https://api.github.com/repos/yongsokheng/fts_32/pulls{/number}","milestones_url":"https://api.github.com/repos/yongsokheng/fts_32/milestones{/number}","notifications_url":"https://api.github.com/repos/yongsokheng/fts_32/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yongsokheng/fts_32/labels{/name}","releases_url":"https://api.github.com/repos/yongsokheng/fts_32/releases{/id}","created_at":"2015-06-17T01:36:09Z","updated_at":"2015-06-16T07:39:07Z","pushed_at":"2015-06-17T08:33:42Z","git_url":"git://github.com/yongsokheng/fts_32.git","ssh_url":"git@github.com:yongsokheng/fts_32.git","clone_url":"https://github.com/yongsokheng/fts_32.git","svn_url":"https://github.com/yongsokheng/fts_32","homepage":null,"size":0,"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":"202bb91f2d1b099a7ba14cd90f8664d998e6c2a1","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":37515539,"name":"fts_32","full_name":"framgia/fts_32","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/fts_32","description":"Framgia Test System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fts_32","forks_url":"https://api.github.com/repos/framgia/fts_32/forks","keys_url":"https://api.github.com/repos/framgia/fts_32/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fts_32/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fts_32/teams","hooks_url":"https://api.github.com/repos/framgia/fts_32/hooks","issue_events_url":"https://api.github.com/repos/framgia/fts_32/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fts_32/events","assignees_url":"https://api.github.com/repos/framgia/fts_32/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fts_32/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fts_32/tags","blobs_url":"https://api.github.com/repos/framgia/fts_32/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fts_32/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fts_32/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fts_32/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fts_32/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fts_32/languages","stargazers_url":"https://api.github.com/repos/framgia/fts_32/stargazers","contributors_url":"https://api.github.com/repos/framgia/fts_32/contributors","subscribers_url":"https://api.github.com/repos/framgia/fts_32/subscribers","subscription_url":"https://api.github.com/repos/framgia/fts_32/subscription","commits_url":"https://api.github.com/repos/framgia/fts_32/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fts_32/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fts_32/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fts_32/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fts_32/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fts_32/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fts_32/merges","archive_url":"https://api.github.com/repos/framgia/fts_32/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fts_32/downloads","issues_url":"https://api.github.com/repos/framgia/fts_32/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fts_32/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fts_32/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fts_32/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fts_32/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fts_32/releases{/id}","created_at":"2015-06-16T07:39:07Z","updated_at":"2015-06-16T07:39:07Z","pushed_at":"2015-06-17T08:33:42Z","git_url":"git://github.com/framgia/fts_32.git","ssh_url":"git@github.com:framgia/fts_32.git","clone_url":"https://github.com/framgia/fts_32.git","svn_url":"https://github.com/framgia/fts_32","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fts_32/pulls/3"},"html":{"href":"https://github.com/framgia/fts_32/pull/3"},"issue":{"href":"https://api.github.com/repos/framgia/fts_32/issues/3"},"comments":{"href":"https://api.github.com/repos/framgia/fts_32/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fts_32/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fts_32/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fts_32/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fts_32/statuses/deef1e911378e089741f58c8d17448b67ca7d55b"}}}}