{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_45/pulls/comments/27850651","id":27850651,"diff_hunk":"@@ -0,0 +1,80 @@\n+class UsersController < ApplicationController\n+  before_action :logged_in_user, only: [:index, :edit, :update, :destroy]\n+  before_action :correct_user,   only: [:edit, :update]\n+  before_action :admin_user,     only: :destroy\n+\n+  def show\n+    @user = User.find(params[:id])\n+  end\n+\n+  def new\n+    @user = User.new\n+  end\n+\n+  def index\n+    @users = User.all\n+  end\n+\n+  def create\n+    @user = User.new(user_params_creation)","path":"app/controllers/users_controller.rb","position":19,"original_position":19,"commit_id":"e25fdca556217993a134047c2e2655d52981606f","original_commit_id":"e25fdca556217993a134047c2e2655d52981606f","user":{"login":"dieunb","id":2122175,"avatar_url":"https://avatars.githubusercontent.com/u/2122175?v=3","gravatar_id":"","url":"https://api.github.com/users/dieunb","html_url":"https://github.com/dieunb","followers_url":"https://api.github.com/users/dieunb/followers","following_url":"https://api.github.com/users/dieunb/following{/other_user}","gists_url":"https://api.github.com/users/dieunb/gists{/gist_id}","starred_url":"https://api.github.com/users/dieunb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieunb/subscriptions","organizations_url":"https://api.github.com/users/dieunb/orgs","repos_url":"https://api.github.com/users/dieunb/repos","events_url":"https://api.github.com/users/dieunb/events{/privacy}","received_events_url":"https://api.github.com/users/dieunb/received_events","type":"User","site_admin":false},"body":"remove `()`","created_at":"2015-04-07T04:17:45Z","updated_at":"2015-04-07T04:17:45Z","html_url":"https://github.com/framgia/fels_45/pull/4#discussion_r27850651","pull_request_url":"https://api.github.com/repos/framgia/fels_45/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_45/pulls/comments/27850651"},"html":{"href":"https://github.com/framgia/fels_45/pull/4#discussion_r27850651"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_45/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_45/pulls/4","id":32732066,"html_url":"https://github.com/framgia/fels_45/pull/4","diff_url":"https://github.com/framgia/fels_45/pull/4.diff","patch_url":"https://github.com/framgia/fels_45/pull/4.patch","issue_url":"https://api.github.com/repos/framgia/fels_45/issues/4","number":4,"state":"open","locked":false,"title":"User model + session/cookie","user":{"login":"huangoc93","id":3760972,"avatar_url":"https://avatars.githubusercontent.com/u/3760972?v=3","gravatar_id":"","url":"https://api.github.com/users/huangoc93","html_url":"https://github.com/huangoc93","followers_url":"https://api.github.com/users/huangoc93/followers","following_url":"https://api.github.com/users/huangoc93/following{/other_user}","gists_url":"https://api.github.com/users/huangoc93/gists{/gist_id}","starred_url":"https://api.github.com/users/huangoc93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangoc93/subscriptions","organizations_url":"https://api.github.com/users/huangoc93/orgs","repos_url":"https://api.github.com/users/huangoc93/repos","events_url":"https://api.github.com/users/huangoc93/events{/privacy}","received_events_url":"https://api.github.com/users/huangoc93/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-07T04:07:57Z","updated_at":"2015-04-07T04:17:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d0e762404b74f1cb103f863e707db366dcf6113","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_45/pulls/4/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_45/pulls/4/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_45/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_45/issues/4/comments","statuses_url":"https://api.github.com/repos/framgia/fels_45/statuses/e25fdca556217993a134047c2e2655d52981606f","head":{"label":"huangoc93:local-develop","ref":"local-develop","sha":"e25fdca556217993a134047c2e2655d52981606f","user":{"login":"huangoc93","id":3760972,"avatar_url":"https://avatars.githubusercontent.com/u/3760972?v=3","gravatar_id":"","url":"https://api.github.com/users/huangoc93","html_url":"https://github.com/huangoc93","followers_url":"https://api.github.com/users/huangoc93/followers","following_url":"https://api.github.com/users/huangoc93/following{/other_user}","gists_url":"https://api.github.com/users/huangoc93/gists{/gist_id}","starred_url":"https://api.github.com/users/huangoc93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangoc93/subscriptions","organizations_url":"https://api.github.com/users/huangoc93/orgs","repos_url":"https://api.github.com/users/huangoc93/repos","events_url":"https://api.github.com/users/huangoc93/events{/privacy}","received_events_url":"https://api.github.com/users/huangoc93/received_events","type":"User","site_admin":false},"repo":{"id":33351667,"name":"fels_45","full_name":"huangoc93/fels_45","owner":{"login":"huangoc93","id":3760972,"avatar_url":"https://avatars.githubusercontent.com/u/3760972?v=3","gravatar_id":"","url":"https://api.github.com/users/huangoc93","html_url":"https://github.com/huangoc93","followers_url":"https://api.github.com/users/huangoc93/followers","following_url":"https://api.github.com/users/huangoc93/following{/other_user}","gists_url":"https://api.github.com/users/huangoc93/gists{/gist_id}","starred_url":"https://api.github.com/users/huangoc93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangoc93/subscriptions","organizations_url":"https://api.github.com/users/huangoc93/orgs","repos_url":"https://api.github.com/users/huangoc93/repos","events_url":"https://api.github.com/users/huangoc93/events{/privacy}","received_events_url":"https://api.github.com/users/huangoc93/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/huangoc93/fels_45","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/huangoc93/fels_45","forks_url":"https://api.github.com/repos/huangoc93/fels_45/forks","keys_url":"https://api.github.com/repos/huangoc93/fels_45/keys{/key_id}","collaborators_url":"https://api.github.com/repos/huangoc93/fels_45/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/huangoc93/fels_45/teams","hooks_url":"https://api.github.com/repos/huangoc93/fels_45/hooks","issue_events_url":"https://api.github.com/repos/huangoc93/fels_45/issues/events{/number}","events_url":"https://api.github.com/repos/huangoc93/fels_45/events","assignees_url":"https://api.github.com/repos/huangoc93/fels_45/assignees{/user}","branches_url":"https://api.github.com/repos/huangoc93/fels_45/branches{/branch}","tags_url":"https://api.github.com/repos/huangoc93/fels_45/tags","blobs_url":"https://api.github.com/repos/huangoc93/fels_45/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/huangoc93/fels_45/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/huangoc93/fels_45/git/refs{/sha}","trees_url":"https://api.github.com/repos/huangoc93/fels_45/git/trees{/sha}","statuses_url":"https://api.github.com/repos/huangoc93/fels_45/statuses/{sha}","languages_url":"https://api.github.com/repos/huangoc93/fels_45/languages","stargazers_url":"https://api.github.com/repos/huangoc93/fels_45/stargazers","contributors_url":"https://api.github.com/repos/huangoc93/fels_45/contributors","subscribers_url":"https://api.github.com/repos/huangoc93/fels_45/subscribers","subscription_url":"https://api.github.com/repos/huangoc93/fels_45/subscription","commits_url":"https://api.github.com/repos/huangoc93/fels_45/commits{/sha}","git_commits_url":"https://api.github.com/repos/huangoc93/fels_45/git/commits{/sha}","comments_url":"https://api.github.com/repos/huangoc93/fels_45/comments{/number}","issue_comment_url":"https://api.github.com/repos/huangoc93/fels_45/issues/comments{/number}","contents_url":"https://api.github.com/repos/huangoc93/fels_45/contents/{+path}","compare_url":"https://api.github.com/repos/huangoc93/fels_45/compare/{base}...{head}","merges_url":"https://api.github.com/repos/huangoc93/fels_45/merges","archive_url":"https://api.github.com/repos/huangoc93/fels_45/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/huangoc93/fels_45/downloads","issues_url":"https://api.github.com/repos/huangoc93/fels_45/issues{/number}","pulls_url":"https://api.github.com/repos/huangoc93/fels_45/pulls{/number}","milestones_url":"https://api.github.com/repos/huangoc93/fels_45/milestones{/number}","notifications_url":"https://api.github.com/repos/huangoc93/fels_45/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/huangoc93/fels_45/labels{/name}","releases_url":"https://api.github.com/repos/huangoc93/fels_45/releases{/id}","created_at":"2015-04-03T07:11:02Z","updated_at":"2015-02-04T06:28:02Z","pushed_at":"2015-04-07T04:06:18Z","git_url":"git://github.com/huangoc93/fels_45.git","ssh_url":"git@github.com:huangoc93/fels_45.git","clone_url":"https://github.com/huangoc93/fels_45.git","svn_url":"https://github.com/huangoc93/fels_45","homepage":null,"size":148,"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":"5786685303950437ef29fd9cd1c189b7f3735ba1","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":30285000,"name":"fels_45","full_name":"framgia/fels_45","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_45","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_45","forks_url":"https://api.github.com/repos/framgia/fels_45/forks","keys_url":"https://api.github.com/repos/framgia/fels_45/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_45/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_45/teams","hooks_url":"https://api.github.com/repos/framgia/fels_45/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_45/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_45/events","assignees_url":"https://api.github.com/repos/framgia/fels_45/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_45/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_45/tags","blobs_url":"https://api.github.com/repos/framgia/fels_45/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_45/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_45/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_45/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_45/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_45/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_45/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_45/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_45/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_45/subscription","commits_url":"https://api.github.com/repos/framgia/fels_45/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_45/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_45/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_45/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_45/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_45/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_45/merges","archive_url":"https://api.github.com/repos/framgia/fels_45/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_45/downloads","issues_url":"https://api.github.com/repos/framgia/fels_45/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_45/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_45/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_45/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_45/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_45/releases{/id}","created_at":"2015-02-04T06:28:02Z","updated_at":"2015-02-04T06:28:02Z","pushed_at":"2015-04-07T04:07:58Z","git_url":"git://github.com/framgia/fels_45.git","ssh_url":"git@github.com:framgia/fels_45.git","clone_url":"https://github.com/framgia/fels_45.git","svn_url":"https://github.com/framgia/fels_45","homepage":null,"size":148,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_45/pulls/4"},"html":{"href":"https://github.com/framgia/fels_45/pull/4"},"issue":{"href":"https://api.github.com/repos/framgia/fels_45/issues/4"},"comments":{"href":"https://api.github.com/repos/framgia/fels_45/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_45/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_45/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_45/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_45/statuses/e25fdca556217993a134047c2e2655d52981606f"}}}}