{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/ftms/pulls/comments/39591821","id":39591821,"diff_hunk":"@@ -0,0 +1,22 @@\n+class Admin::UsersController < ApplicationController\n+  load_and_authorize_resource\n+\n+  def new\n+  end\n+\n+  def create\n+    if @user.save\n+      flash[:success] = t \"flash.user.create_success\"\n+      redirect_to new_admin_users_path\n+    else\n+      flash[:fail] = t \"flash.user.create_fail\"\n+      render \"new\"","path":"app/controllers/admin/users_controller.rb","position":13,"original_position":13,"commit_id":"199c12db1915545d2ca75926b00d7c431497e0aa","original_commit_id":"199c12db1915545d2ca75926b00d7c431497e0aa","user":{"login":"hellovietnam93","id":8023606,"avatar_url":"https://avatars.githubusercontent.com/u/8023606?v=3","gravatar_id":"","url":"https://api.github.com/users/hellovietnam93","html_url":"https://github.com/hellovietnam93","followers_url":"https://api.github.com/users/hellovietnam93/followers","following_url":"https://api.github.com/users/hellovietnam93/following{/other_user}","gists_url":"https://api.github.com/users/hellovietnam93/gists{/gist_id}","starred_url":"https://api.github.com/users/hellovietnam93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellovietnam93/subscriptions","organizations_url":"https://api.github.com/users/hellovietnam93/orgs","repos_url":"https://api.github.com/users/hellovietnam93/repos","events_url":"https://api.github.com/users/hellovietnam93/events{/privacy}","received_events_url":"https://api.github.com/users/hellovietnam93/received_events","type":"User","site_admin":false},"body":"using :new instead of\r\n","created_at":"2015-09-16T03:55:08Z","updated_at":"2015-09-16T03:55:08Z","html_url":"https://github.com/framgia/ftms/pull/7#discussion_r39591821","pull_request_url":"https://api.github.com/repos/framgia/ftms/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/framgia/ftms/pulls/comments/39591821"},"html":{"href":"https://github.com/framgia/ftms/pull/7#discussion_r39591821"},"pull_request":{"href":"https://api.github.com/repos/framgia/ftms/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/ftms/pulls/7","id":45126956,"html_url":"https://github.com/framgia/ftms/pull/7","diff_url":"https://github.com/framgia/ftms/pull/7.diff","patch_url":"https://github.com/framgia/ftms/pull/7.patch","issue_url":"https://api.github.com/repos/framgia/ftms/issues/7","number":7,"state":"open","locked":false,"title":"Admin create user","user":{"login":"ttuan","id":10399018,"avatar_url":"https://avatars.githubusercontent.com/u/10399018?v=3","gravatar_id":"","url":"https://api.github.com/users/ttuan","html_url":"https://github.com/ttuan","followers_url":"https://api.github.com/users/ttuan/followers","following_url":"https://api.github.com/users/ttuan/following{/other_user}","gists_url":"https://api.github.com/users/ttuan/gists{/gist_id}","starred_url":"https://api.github.com/users/ttuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttuan/subscriptions","organizations_url":"https://api.github.com/users/ttuan/orgs","repos_url":"https://api.github.com/users/ttuan/repos","events_url":"https://api.github.com/users/ttuan/events{/privacy}","received_events_url":"https://api.github.com/users/ttuan/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-16T03:11:11Z","updated_at":"2015-09-16T03:55:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c2c07e50b48b3efc2f1649ea7fef7adcde7f0a59","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/ftms/pulls/7/commits","review_comments_url":"https://api.github.com/repos/framgia/ftms/pulls/7/comments","review_comment_url":"https://api.github.com/repos/framgia/ftms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/ftms/issues/7/comments","statuses_url":"https://api.github.com/repos/framgia/ftms/statuses/199c12db1915545d2ca75926b00d7c431497e0aa","head":{"label":"ttuan:39083-Admin-create-user","ref":"39083-Admin-create-user","sha":"199c12db1915545d2ca75926b00d7c431497e0aa","user":{"login":"ttuan","id":10399018,"avatar_url":"https://avatars.githubusercontent.com/u/10399018?v=3","gravatar_id":"","url":"https://api.github.com/users/ttuan","html_url":"https://github.com/ttuan","followers_url":"https://api.github.com/users/ttuan/followers","following_url":"https://api.github.com/users/ttuan/following{/other_user}","gists_url":"https://api.github.com/users/ttuan/gists{/gist_id}","starred_url":"https://api.github.com/users/ttuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttuan/subscriptions","organizations_url":"https://api.github.com/users/ttuan/orgs","repos_url":"https://api.github.com/users/ttuan/repos","events_url":"https://api.github.com/users/ttuan/events{/privacy}","received_events_url":"https://api.github.com/users/ttuan/received_events","type":"User","site_admin":false},"repo":{"id":42456810,"name":"ftms","full_name":"ttuan/ftms","owner":{"login":"ttuan","id":10399018,"avatar_url":"https://avatars.githubusercontent.com/u/10399018?v=3","gravatar_id":"","url":"https://api.github.com/users/ttuan","html_url":"https://github.com/ttuan","followers_url":"https://api.github.com/users/ttuan/followers","following_url":"https://api.github.com/users/ttuan/following{/other_user}","gists_url":"https://api.github.com/users/ttuan/gists{/gist_id}","starred_url":"https://api.github.com/users/ttuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttuan/subscriptions","organizations_url":"https://api.github.com/users/ttuan/orgs","repos_url":"https://api.github.com/users/ttuan/repos","events_url":"https://api.github.com/users/ttuan/events{/privacy}","received_events_url":"https://api.github.com/users/ttuan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ttuan/ftms","description":"Framgia Training Management System","fork":true,"url":"https://api.github.com/repos/ttuan/ftms","forks_url":"https://api.github.com/repos/ttuan/ftms/forks","keys_url":"https://api.github.com/repos/ttuan/ftms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ttuan/ftms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ttuan/ftms/teams","hooks_url":"https://api.github.com/repos/ttuan/ftms/hooks","issue_events_url":"https://api.github.com/repos/ttuan/ftms/issues/events{/number}","events_url":"https://api.github.com/repos/ttuan/ftms/events","assignees_url":"https://api.github.com/repos/ttuan/ftms/assignees{/user}","branches_url":"https://api.github.com/repos/ttuan/ftms/branches{/branch}","tags_url":"https://api.github.com/repos/ttuan/ftms/tags","blobs_url":"https://api.github.com/repos/ttuan/ftms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ttuan/ftms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ttuan/ftms/git/refs{/sha}","trees_url":"https://api.github.com/repos/ttuan/ftms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ttuan/ftms/statuses/{sha}","languages_url":"https://api.github.com/repos/ttuan/ftms/languages","stargazers_url":"https://api.github.com/repos/ttuan/ftms/stargazers","contributors_url":"https://api.github.com/repos/ttuan/ftms/contributors","subscribers_url":"https://api.github.com/repos/ttuan/ftms/subscribers","subscription_url":"https://api.github.com/repos/ttuan/ftms/subscription","commits_url":"https://api.github.com/repos/ttuan/ftms/commits{/sha}","git_commits_url":"https://api.github.com/repos/ttuan/ftms/git/commits{/sha}","comments_url":"https://api.github.com/repos/ttuan/ftms/comments{/number}","issue_comment_url":"https://api.github.com/repos/ttuan/ftms/issues/comments{/number}","contents_url":"https://api.github.com/repos/ttuan/ftms/contents/{+path}","compare_url":"https://api.github.com/repos/ttuan/ftms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ttuan/ftms/merges","archive_url":"https://api.github.com/repos/ttuan/ftms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ttuan/ftms/downloads","issues_url":"https://api.github.com/repos/ttuan/ftms/issues{/number}","pulls_url":"https://api.github.com/repos/ttuan/ftms/pulls{/number}","milestones_url":"https://api.github.com/repos/ttuan/ftms/milestones{/number}","notifications_url":"https://api.github.com/repos/ttuan/ftms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ttuan/ftms/labels{/name}","releases_url":"https://api.github.com/repos/ttuan/ftms/releases{/id}","created_at":"2015-09-14T15:19:02Z","updated_at":"2015-09-10T03:49:19Z","pushed_at":"2015-09-16T03:52:23Z","git_url":"git://github.com/ttuan/ftms.git","ssh_url":"git@github.com:ttuan/ftms.git","clone_url":"https://github.com/ttuan/ftms.git","svn_url":"https://github.com/ttuan/ftms","homepage":null,"size":72,"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":"58636d09d6e2967bc72a1fdd55f8e1039a50abcb","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":42220671,"name":"ftms","full_name":"framgia/ftms","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/ftms","description":"Framgia Training Management System","fork":false,"url":"https://api.github.com/repos/framgia/ftms","forks_url":"https://api.github.com/repos/framgia/ftms/forks","keys_url":"https://api.github.com/repos/framgia/ftms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/ftms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/ftms/teams","hooks_url":"https://api.github.com/repos/framgia/ftms/hooks","issue_events_url":"https://api.github.com/repos/framgia/ftms/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/ftms/events","assignees_url":"https://api.github.com/repos/framgia/ftms/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/ftms/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/ftms/tags","blobs_url":"https://api.github.com/repos/framgia/ftms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/ftms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/ftms/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/ftms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/ftms/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/ftms/languages","stargazers_url":"https://api.github.com/repos/framgia/ftms/stargazers","contributors_url":"https://api.github.com/repos/framgia/ftms/contributors","subscribers_url":"https://api.github.com/repos/framgia/ftms/subscribers","subscription_url":"https://api.github.com/repos/framgia/ftms/subscription","commits_url":"https://api.github.com/repos/framgia/ftms/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/ftms/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/ftms/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/ftms/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/ftms/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/ftms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/ftms/merges","archive_url":"https://api.github.com/repos/framgia/ftms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/ftms/downloads","issues_url":"https://api.github.com/repos/framgia/ftms/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/ftms/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/ftms/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/ftms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/ftms/labels{/name}","releases_url":"https://api.github.com/repos/framgia/ftms/releases{/id}","created_at":"2015-09-10T03:49:19Z","updated_at":"2015-09-10T03:49:19Z","pushed_at":"2015-09-16T03:55:06Z","git_url":"git://github.com/framgia/ftms.git","ssh_url":"git@github.com:framgia/ftms.git","clone_url":"https://github.com/framgia/ftms.git","svn_url":"https://github.com/framgia/ftms","homepage":null,"size":829,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":6,"forks":10,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/ftms/pulls/7"},"html":{"href":"https://github.com/framgia/ftms/pull/7"},"issue":{"href":"https://api.github.com/repos/framgia/ftms/issues/7"},"comments":{"href":"https://api.github.com/repos/framgia/ftms/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/ftms/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/ftms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/ftms/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/ftms/statuses/199c12db1915545d2ca75926b00d7c431497e0aa"}}}}