{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_63/pulls/comments/33110646","id":33110646,"diff_hunk":"@@ -0,0 +1,47 @@\n+class UsersController < ApplicationController\n+  before_action :logged_in_user, only: [:edit, :update]\n+  before_action :correct_user, only: [:edit, :update]\n+  before_action :set_user, only: [:show, :edit, :update]\n+  def index\n+    @users = User.all\n+  end\n+\n+  def show\n+  end\n+\n+  def edit\n+  end\n+\n+  def create\n+    @user = User.new user_params\n+    if @user.save\n+      log_in @user\n+      flash[:success] = t(:login)[:success]\n+      redirect_to @user\n+    else\n+      render :new","path":"app/controllers/users_controller.rb","position":22,"original_position":22,"commit_id":"fa0f6a7212192da63c7bba8a769b72e58b4ab8ed","original_commit_id":"fa0f6a7212192da63c7bba8a769b72e58b4ab8ed","user":{"login":"phamkykhoi","id":8532305,"avatar_url":"https://avatars.githubusercontent.com/u/8532305?v=3","gravatar_id":"","url":"https://api.github.com/users/phamkykhoi","html_url":"https://github.com/phamkykhoi","followers_url":"https://api.github.com/users/phamkykhoi/followers","following_url":"https://api.github.com/users/phamkykhoi/following{/other_user}","gists_url":"https://api.github.com/users/phamkykhoi/gists{/gist_id}","starred_url":"https://api.github.com/users/phamkykhoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phamkykhoi/subscriptions","organizations_url":"https://api.github.com/users/phamkykhoi/orgs","repos_url":"https://api.github.com/users/phamkykhoi/repos","events_url":"https://api.github.com/users/phamkykhoi/events{/privacy}","received_events_url":"https://api.github.com/users/phamkykhoi/received_events","type":"User","site_admin":false},"body":"render :new ==> render \"new\"","created_at":"2015-06-24T01:30:42Z","updated_at":"2015-06-24T01:30:42Z","html_url":"https://github.com/framgia/fels_63/pull/4#discussion_r33110646","pull_request_url":"https://api.github.com/repos/framgia/fels_63/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_63/pulls/comments/33110646"},"html":{"href":"https://github.com/framgia/fels_63/pull/4#discussion_r33110646"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_63/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_63/pulls/4","id":38312250,"html_url":"https://github.com/framgia/fels_63/pull/4","diff_url":"https://github.com/framgia/fels_63/pull/4.diff","patch_url":"https://github.com/framgia/fels_63/pull/4.patch","issue_url":"https://api.github.com/repos/framgia/fels_63/issues/4","number":4,"state":"open","locked":false,"title":"login-logout","user":{"login":"TrucLuu","id":10126685,"avatar_url":"https://avatars.githubusercontent.com/u/10126685?v=3","gravatar_id":"","url":"https://api.github.com/users/TrucLuu","html_url":"https://github.com/TrucLuu","followers_url":"https://api.github.com/users/TrucLuu/followers","following_url":"https://api.github.com/users/TrucLuu/following{/other_user}","gists_url":"https://api.github.com/users/TrucLuu/gists{/gist_id}","starred_url":"https://api.github.com/users/TrucLuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrucLuu/subscriptions","organizations_url":"https://api.github.com/users/TrucLuu/orgs","repos_url":"https://api.github.com/users/TrucLuu/repos","events_url":"https://api.github.com/users/TrucLuu/events{/privacy}","received_events_url":"https://api.github.com/users/TrucLuu/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-23T08:31:26Z","updated_at":"2015-06-24T01:30:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"55a3571d6afb57564cb04cc4d79b0751a39fb795","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_63/pulls/4/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_63/pulls/4/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_63/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_63/issues/4/comments","statuses_url":"https://api.github.com/repos/framgia/fels_63/statuses/fa0f6a7212192da63c7bba8a769b72e58b4ab8ed","head":{"label":"TrucLuu:33259","ref":"33259","sha":"fa0f6a7212192da63c7bba8a769b72e58b4ab8ed","user":{"login":"TrucLuu","id":10126685,"avatar_url":"https://avatars.githubusercontent.com/u/10126685?v=3","gravatar_id":"","url":"https://api.github.com/users/TrucLuu","html_url":"https://github.com/TrucLuu","followers_url":"https://api.github.com/users/TrucLuu/followers","following_url":"https://api.github.com/users/TrucLuu/following{/other_user}","gists_url":"https://api.github.com/users/TrucLuu/gists{/gist_id}","starred_url":"https://api.github.com/users/TrucLuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrucLuu/subscriptions","organizations_url":"https://api.github.com/users/TrucLuu/orgs","repos_url":"https://api.github.com/users/TrucLuu/repos","events_url":"https://api.github.com/users/TrucLuu/events{/privacy}","received_events_url":"https://api.github.com/users/TrucLuu/received_events","type":"User","site_admin":false},"repo":{"id":37837229,"name":"fels_63","full_name":"TrucLuu/fels_63","owner":{"login":"TrucLuu","id":10126685,"avatar_url":"https://avatars.githubusercontent.com/u/10126685?v=3","gravatar_id":"","url":"https://api.github.com/users/TrucLuu","html_url":"https://github.com/TrucLuu","followers_url":"https://api.github.com/users/TrucLuu/followers","following_url":"https://api.github.com/users/TrucLuu/following{/other_user}","gists_url":"https://api.github.com/users/TrucLuu/gists{/gist_id}","starred_url":"https://api.github.com/users/TrucLuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrucLuu/subscriptions","organizations_url":"https://api.github.com/users/TrucLuu/orgs","repos_url":"https://api.github.com/users/TrucLuu/repos","events_url":"https://api.github.com/users/TrucLuu/events{/privacy}","received_events_url":"https://api.github.com/users/TrucLuu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TrucLuu/fels_63","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/TrucLuu/fels_63","forks_url":"https://api.github.com/repos/TrucLuu/fels_63/forks","keys_url":"https://api.github.com/repos/TrucLuu/fels_63/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TrucLuu/fels_63/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TrucLuu/fels_63/teams","hooks_url":"https://api.github.com/repos/TrucLuu/fels_63/hooks","issue_events_url":"https://api.github.com/repos/TrucLuu/fels_63/issues/events{/number}","events_url":"https://api.github.com/repos/TrucLuu/fels_63/events","assignees_url":"https://api.github.com/repos/TrucLuu/fels_63/assignees{/user}","branches_url":"https://api.github.com/repos/TrucLuu/fels_63/branches{/branch}","tags_url":"https://api.github.com/repos/TrucLuu/fels_63/tags","blobs_url":"https://api.github.com/repos/TrucLuu/fels_63/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TrucLuu/fels_63/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TrucLuu/fels_63/git/refs{/sha}","trees_url":"https://api.github.com/repos/TrucLuu/fels_63/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TrucLuu/fels_63/statuses/{sha}","languages_url":"https://api.github.com/repos/TrucLuu/fels_63/languages","stargazers_url":"https://api.github.com/repos/TrucLuu/fels_63/stargazers","contributors_url":"https://api.github.com/repos/TrucLuu/fels_63/contributors","subscribers_url":"https://api.github.com/repos/TrucLuu/fels_63/subscribers","subscription_url":"https://api.github.com/repos/TrucLuu/fels_63/subscription","commits_url":"https://api.github.com/repos/TrucLuu/fels_63/commits{/sha}","git_commits_url":"https://api.github.com/repos/TrucLuu/fels_63/git/commits{/sha}","comments_url":"https://api.github.com/repos/TrucLuu/fels_63/comments{/number}","issue_comment_url":"https://api.github.com/repos/TrucLuu/fels_63/issues/comments{/number}","contents_url":"https://api.github.com/repos/TrucLuu/fels_63/contents/{+path}","compare_url":"https://api.github.com/repos/TrucLuu/fels_63/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TrucLuu/fels_63/merges","archive_url":"https://api.github.com/repos/TrucLuu/fels_63/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TrucLuu/fels_63/downloads","issues_url":"https://api.github.com/repos/TrucLuu/fels_63/issues{/number}","pulls_url":"https://api.github.com/repos/TrucLuu/fels_63/pulls{/number}","milestones_url":"https://api.github.com/repos/TrucLuu/fels_63/milestones{/number}","notifications_url":"https://api.github.com/repos/TrucLuu/fels_63/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TrucLuu/fels_63/labels{/name}","releases_url":"https://api.github.com/repos/TrucLuu/fels_63/releases{/id}","created_at":"2015-06-22T04:21:11Z","updated_at":"2015-06-22T02:50:21Z","pushed_at":"2015-06-23T17:20:16Z","git_url":"git://github.com/TrucLuu/fels_63.git","ssh_url":"git@github.com:TrucLuu/fels_63.git","clone_url":"https://github.com/TrucLuu/fels_63.git","svn_url":"https://github.com/TrucLuu/fels_63","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":"77b0bffdb4a770d1731086128f084b17ad00b976","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":37835012,"name":"fels_63","full_name":"framgia/fels_63","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/fels_63","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_63","forks_url":"https://api.github.com/repos/framgia/fels_63/forks","keys_url":"https://api.github.com/repos/framgia/fels_63/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_63/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_63/teams","hooks_url":"https://api.github.com/repos/framgia/fels_63/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_63/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_63/events","assignees_url":"https://api.github.com/repos/framgia/fels_63/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_63/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_63/tags","blobs_url":"https://api.github.com/repos/framgia/fels_63/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_63/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_63/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_63/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_63/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_63/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_63/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_63/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_63/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_63/subscription","commits_url":"https://api.github.com/repos/framgia/fels_63/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_63/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_63/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_63/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_63/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_63/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_63/merges","archive_url":"https://api.github.com/repos/framgia/fels_63/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_63/downloads","issues_url":"https://api.github.com/repos/framgia/fels_63/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_63/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_63/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_63/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_63/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_63/releases{/id}","created_at":"2015-06-22T02:50:21Z","updated_at":"2015-06-22T02:50:21Z","pushed_at":"2015-06-23T15:55:17Z","git_url":"git://github.com/framgia/fels_63.git","ssh_url":"git@github.com:framgia/fels_63.git","clone_url":"https://github.com/framgia/fels_63.git","svn_url":"https://github.com/framgia/fels_63","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":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_63/pulls/4"},"html":{"href":"https://github.com/framgia/fels_63/pull/4"},"issue":{"href":"https://api.github.com/repos/framgia/fels_63/issues/4"},"comments":{"href":"https://api.github.com/repos/framgia/fels_63/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_63/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_63/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_63/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_63/statuses/fa0f6a7212192da63c7bba8a769b72e58b4ab8ed"}}}}