GitHub PullRequestReviewCommentEvent at 2014-07-25 06:22:36
Repository: fts_6
Actor: chuanhtuan
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fts_6/pulls/comments/15387703","id":15387703,"diff_hunk":"@@ -1,4 +1,74 @@\n class UsersController < ApplicationController\n+  \n+  before_action :signed_in_user, only: [:index, :edit, :update, :destroy]\n+\n+  before_action :correct_user,   only: [:edit, :update]\n+\n+  before_action :admin_user,     only: :destroy\n+  \n   def new\n+    @user = User.new\n   end\n+\n+  def index\n+    @users = User.paginate(page: params[:page], per_page: 7)\n+  end\n+\n+  def show\n+    @user = User.find(params[:id])\n+  end\n+\n+  def create\n+    @user = User.new(user_params)\n+    if @user.save\n+      sign_in @user\n+      redirect_to @user\n+    else\n+      \n+      render 'new'\n+    end\n+  end\n+\n+  def edit\n+    #@user = User.find(params[:id])\n+  end\n+\n+  def update\n+    @user = User.find(params[:id])\n+    if @user.update_attributes(user_params)","path":"app/controllers/users_controller.rb","position":38,"original_position":38,"commit_id":"63b9d1461b91b8738eb846d5cd37517192f574fc","original_commit_id":"63b9d1461b91b8738eb846d5cd37517192f574fc","user":{"login":"chuanhtuan","id":5590771,"avatar_url":"https://avatars.githubusercontent.com/u/5590771?","gravatar_id":"5a58df1bdcb0e415c0e8341feddca341","url":"https://api.github.com/users/chuanhtuan","html_url":"https://github.com/chuanhtuan","followers_url":"https://api.github.com/users/chuanhtuan/followers","following_url":"https://api.github.com/users/chuanhtuan/following{/other_user}","gists_url":"https://api.github.com/users/chuanhtuan/gists{/gist_id}","starred_url":"https://api.github.com/users/chuanhtuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuanhtuan/subscriptions","organizations_url":"https://api.github.com/users/chuanhtuan/orgs","repos_url":"https://api.github.com/users/chuanhtuan/repos","events_url":"https://api.github.com/users/chuanhtuan/events{/privacy}","received_events_url":"https://api.github.com/users/chuanhtuan/received_events","type":"User","site_admin":false},"body":"remove ()","created_at":"2014-07-25T06:22:36Z","updated_at":"2014-07-25T06:22:36Z","html_url":"https://github.com/framgia/fts_6/pull/11#discussion_r15387703","pull_request_url":"https://api.github.com/repos/framgia/fts_6/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/framgia/fts_6/pulls/comments/15387703"},"html":{"href":"https://github.com/framgia/fts_6/pull/11#discussion_r15387703"},"pull_request":{"href":"https://api.github.com/repos/framgia/fts_6/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fts_6/pulls/11","id":18874863,"html_url":"https://github.com/framgia/fts_6/pull/11","diff_url":"https://github.com/framgia/fts_6/pull/11.diff","patch_url":"https://github.com/framgia/fts_6/pull/11.patch","issue_url":"https://api.github.com/repos/framgia/fts_6/issues/11","number":11,"state":"open","title":"Finish signin, signup, signout, list all user...","user":{"login":"thanhcong01","id":8049796,"avatar_url":"https://avatars.githubusercontent.com/u/8049796?","gravatar_id":"cd61281b0ace9785283590daed092017","url":"https://api.github.com/users/thanhcong01","html_url":"https://github.com/thanhcong01","followers_url":"https://api.github.com/users/thanhcong01/followers","following_url":"https://api.github.com/users/thanhcong01/following{/other_user}","gists_url":"https://api.github.com/users/thanhcong01/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhcong01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhcong01/subscriptions","organizations_url":"https://api.github.com/users/thanhcong01/orgs","repos_url":"https://api.github.com/users/thanhcong01/repos","events_url":"https://api.github.com/users/thanhcong01/events{/privacy}","received_events_url":"https://api.github.com/users/thanhcong01/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-07-25T02:01:21Z","updated_at":"2014-07-25T06:22:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97617ee416a536e15cedc8a634e79bb76f7dbabf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fts_6/pulls/11/commits","review_comments_url":"https://api.github.com/repos/framgia/fts_6/pulls/11/comments","review_comment_url":"https://api.github.com/repos/framgia/fts_6/pulls/comments/{number}","comments_url":"https://api.github.com/repos/framgia/fts_6/issues/11/comments","statuses_url":"https://api.github.com/repos/framgia/fts_6/statuses/63b9d1461b91b8738eb846d5cd37517192f574fc","head":{"label":"thanhcong01:user-controller-created","ref":"user-controller-created","sha":"63b9d1461b91b8738eb846d5cd37517192f574fc","user":{"login":"thanhcong01","id":8049796,"avatar_url":"https://avatars.githubusercontent.com/u/8049796?","gravatar_id":"cd61281b0ace9785283590daed092017","url":"https://api.github.com/users/thanhcong01","html_url":"https://github.com/thanhcong01","followers_url":"https://api.github.com/users/thanhcong01/followers","following_url":"https://api.github.com/users/thanhcong01/following{/other_user}","gists_url":"https://api.github.com/users/thanhcong01/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhcong01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhcong01/subscriptions","organizations_url":"https://api.github.com/users/thanhcong01/orgs","repos_url":"https://api.github.com/users/thanhcong01/repos","events_url":"https://api.github.com/users/thanhcong01/events{/privacy}","received_events_url":"https://api.github.com/users/thanhcong01/received_events","type":"User","site_admin":false},"repo":{"id":22128343,"name":"fts_6","full_name":"thanhcong01/fts_6","owner":{"login":"thanhcong01","id":8049796,"avatar_url":"https://avatars.githubusercontent.com/u/8049796?","gravatar_id":"cd61281b0ace9785283590daed092017","url":"https://api.github.com/users/thanhcong01","html_url":"https://github.com/thanhcong01","followers_url":"https://api.github.com/users/thanhcong01/followers","following_url":"https://api.github.com/users/thanhcong01/following{/other_user}","gists_url":"https://api.github.com/users/thanhcong01/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhcong01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhcong01/subscriptions","organizations_url":"https://api.github.com/users/thanhcong01/orgs","repos_url":"https://api.github.com/users/thanhcong01/repos","events_url":"https://api.github.com/users/thanhcong01/events{/privacy}","received_events_url":"https://api.github.com/users/thanhcong01/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thanhcong01/fts_6","description":"Framgia Test System","fork":true,"url":"https://api.github.com/repos/thanhcong01/fts_6","forks_url":"https://api.github.com/repos/thanhcong01/fts_6/forks","keys_url":"https://api.github.com/repos/thanhcong01/fts_6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thanhcong01/fts_6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thanhcong01/fts_6/teams","hooks_url":"https://api.github.com/repos/thanhcong01/fts_6/hooks","issue_events_url":"https://api.github.com/repos/thanhcong01/fts_6/issues/events{/number}","events_url":"https://api.github.com/repos/thanhcong01/fts_6/events","assignees_url":"https://api.github.com/repos/thanhcong01/fts_6/assignees{/user}","branches_url":"https://api.github.com/repos/thanhcong01/fts_6/branches{/branch}","tags_url":"https://api.github.com/repos/thanhcong01/fts_6/tags","blobs_url":"https://api.github.com/repos/thanhcong01/fts_6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thanhcong01/fts_6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thanhcong01/fts_6/git/refs{/sha}","trees_url":"https://api.github.com/repos/thanhcong01/fts_6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thanhcong01/fts_6/statuses/{sha}","languages_url":"https://api.github.com/repos/thanhcong01/fts_6/languages","stargazers_url":"https://api.github.com/repos/thanhcong01/fts_6/stargazers","contributors_url":"https://api.github.com/repos/thanhcong01/fts_6/contributors","subscribers_url":"https://api.github.com/repos/thanhcong01/fts_6/subscribers","subscription_url":"https://api.github.com/repos/thanhcong01/fts_6/subscription","commits_url":"https://api.github.com/repos/thanhcong01/fts_6/commits{/sha}","git_commits_url":"https://api.github.com/repos/thanhcong01/fts_6/git/commits{/sha}","comments_url":"https://api.github.com/repos/thanhcong01/fts_6/comments{/number}","issue_comment_url":"https://api.github.com/repos/thanhcong01/fts_6/issues/comments/{number}","contents_url":"https://api.github.com/repos/thanhcong01/fts_6/contents/{+path}","compare_url":"https://api.github.com/repos/thanhcong01/fts_6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thanhcong01/fts_6/merges","archive_url":"https://api.github.com/repos/thanhcong01/fts_6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thanhcong01/fts_6/downloads","issues_url":"https://api.github.com/repos/thanhcong01/fts_6/issues{/number}","pulls_url":"https://api.github.com/repos/thanhcong01/fts_6/pulls{/number}","milestones_url":"https://api.github.com/repos/thanhcong01/fts_6/milestones{/number}","notifications_url":"https://api.github.com/repos/thanhcong01/fts_6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thanhcong01/fts_6/labels{/name}","releases_url":"https://api.github.com/repos/thanhcong01/fts_6/releases{/id}","created_at":"2014-07-23T02:09:07Z","updated_at":"2014-07-21T07:01:56Z","pushed_at":"2014-07-25T06:03:57Z","git_url":"git://github.com/thanhcong01/fts_6.git","ssh_url":"git@github.com:thanhcong01/fts_6.git","clone_url":"https://github.com/thanhcong01/fts_6.git","svn_url":"https://github.com/thanhcong01/fts_6","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"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":"bec992ecfab7fcd35533f31b9f252065d2dbe699","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?","gravatar_id":"3ce7d2eb873a8c960e623b6c80fdb7ac","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":22054914,"name":"fts_6","full_name":"framgia/fts_6","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?","gravatar_id":"3ce7d2eb873a8c960e623b6c80fdb7ac","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_6","description":"Framgia Test System","fork":false,"url":"https://api.github.com/repos/framgia/fts_6","forks_url":"https://api.github.com/repos/framgia/fts_6/forks","keys_url":"https://api.github.com/repos/framgia/fts_6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fts_6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fts_6/teams","hooks_url":"https://api.github.com/repos/framgia/fts_6/hooks","issue_events_url":"https://api.github.com/repos/framgia/fts_6/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fts_6/events","assignees_url":"https://api.github.com/repos/framgia/fts_6/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fts_6/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fts_6/tags","blobs_url":"https://api.github.com/repos/framgia/fts_6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fts_6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fts_6/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fts_6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fts_6/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fts_6/languages","stargazers_url":"https://api.github.com/repos/framgia/fts_6/stargazers","contributors_url":"https://api.github.com/repos/framgia/fts_6/contributors","subscribers_url":"https://api.github.com/repos/framgia/fts_6/subscribers","subscription_url":"https://api.github.com/repos/framgia/fts_6/subscription","commits_url":"https://api.github.com/repos/framgia/fts_6/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fts_6/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fts_6/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fts_6/issues/comments/{number}","contents_url":"https://api.github.com/repos/framgia/fts_6/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fts_6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fts_6/merges","archive_url":"https://api.github.com/repos/framgia/fts_6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fts_6/downloads","issues_url":"https://api.github.com/repos/framgia/fts_6/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fts_6/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fts_6/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fts_6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fts_6/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fts_6/releases{/id}","created_at":"2014-07-21T07:01:56Z","updated_at":"2014-07-21T07:01:56Z","pushed_at":"2014-07-25T01:42:43Z","git_url":"git://github.com/framgia/fts_6.git","ssh_url":"git@github.com:framgia/fts_6.git","clone_url":"https://github.com/framgia/fts_6.git","svn_url":"https://github.com/framgia/fts_6","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"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/fts_6/pulls/11"},"html":{"href":"https://github.com/framgia/fts_6/pull/11"},"issue":{"href":"https://api.github.com/repos/framgia/fts_6/issues/11"},"comments":{"href":"https://api.github.com/repos/framgia/fts_6/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fts_6/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fts_6/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/framgia/fts_6/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fts_6/statuses/63b9d1461b91b8738eb846d5cd37517192f574fc"}}}}