{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_205/pulls/comments/84640910","pull_request_review_id":5404577,"id":84640910,"diff_hunk":"@@ -0,0 +1,37 @@\n+class UsersController < ApplicationController\n+  def new\n+    @user=User.new\n+  end\n+\n+  def create\n+    @user = User.new user_params\n+    if @user.save\n+      flash[:info] = \"#{t :wellcome}, #{@user.name}\"\n+      redirect_to root_url\n+    else\n+      render 'new'\n+    end\n+  end\n+\n+  def show\n+    @user = User.find_by id: params[:id]\n+  end\n+\n+  private\n+    def user_params\n+      @phone=params[:user][:phone]\n+      unless @phone.nil?\n+        @phone.gsub! \" \",\"\"\n+        @phone.gsub! \"-\",\"\"\n+        @phone.gsub! \"(\",\"\"\n+        @phone.gsub! \")\",\"\"\n+      end\n+      params[:user][:phone]=@phone\n+      params.require(:user).permit(\n+        :name, :birthday, :email,\n+        :sex, :address, :phone,\n+        :password, :password_confirmation,\n+        :avatar\n+      )","path":"app/controllers/users_controller.rb","position":35,"original_position":35,"commit_id":"7c5250923799119105b1b7e0611d7a8e507ee7b3","original_commit_id":"7c5250923799119105b1b7e0611d7a8e507ee7b3","user":{"login":"phamvanbk11","id":10772245,"avatar_url":"https://avatars.githubusercontent.com/u/10772245?v=3","gravatar_id":"","url":"https://api.github.com/users/phamvanbk11","html_url":"https://github.com/phamvanbk11","followers_url":"https://api.github.com/users/phamvanbk11/followers","following_url":"https://api.github.com/users/phamvanbk11/following{/other_user}","gists_url":"https://api.github.com/users/phamvanbk11/gists{/gist_id}","starred_url":"https://api.github.com/users/phamvanbk11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phamvanbk11/subscriptions","organizations_url":"https://api.github.com/users/phamvanbk11/orgs","repos_url":"https://api.github.com/users/phamvanbk11/repos","events_url":"https://api.github.com/users/phamvanbk11/events{/privacy}","received_events_url":"https://api.github.com/users/phamvanbk11/received_events","type":"User","site_admin":false},"body":"remove ()","created_at":"2016-10-24T08:32:44Z","updated_at":"2016-10-24T08:34:23Z","html_url":"https://github.com/framgia/fels_205/pull/4#discussion_r84640910","pull_request_url":"https://api.github.com/repos/framgia/fels_205/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_205/pulls/comments/84640910"},"html":{"href":"https://github.com/framgia/fels_205/pull/4#discussion_r84640910"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_205/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_205/pulls/4","id":90553523,"html_url":"https://github.com/framgia/fels_205/pull/4","diff_url":"https://github.com/framgia/fels_205/pull/4.diff","patch_url":"https://github.com/framgia/fels_205/pull/4.patch","issue_url":"https://api.github.com/repos/framgia/fels_205/issues/4","number":4,"state":"open","locked":false,"title":"Sign up","user":{"login":"phantien133","id":22651625,"avatar_url":"https://avatars.githubusercontent.com/u/22651625?v=3","gravatar_id":"","url":"https://api.github.com/users/phantien133","html_url":"https://github.com/phantien133","followers_url":"https://api.github.com/users/phantien133/followers","following_url":"https://api.github.com/users/phantien133/following{/other_user}","gists_url":"https://api.github.com/users/phantien133/gists{/gist_id}","starred_url":"https://api.github.com/users/phantien133/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phantien133/subscriptions","organizations_url":"https://api.github.com/users/phantien133/orgs","repos_url":"https://api.github.com/users/phantien133/repos","events_url":"https://api.github.com/users/phantien133/events{/privacy}","received_events_url":"https://api.github.com/users/phantien133/received_events","type":"User","site_admin":false},"body":"User sign up","created_at":"2016-10-24T06:01:29Z","updated_at":"2016-10-24T08:34:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f35f93ce972b937f92f8a1fd667501fa63aa1ede","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_205/pulls/4/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_205/pulls/4/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_205/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_205/issues/4/comments","statuses_url":"https://api.github.com/repos/framgia/fels_205/statuses/7c5250923799119105b1b7e0611d7a8e507ee7b3","head":{"label":"phantien133:sign-up","ref":"sign-up","sha":"7c5250923799119105b1b7e0611d7a8e507ee7b3","user":{"login":"phantien133","id":22651625,"avatar_url":"https://avatars.githubusercontent.com/u/22651625?v=3","gravatar_id":"","url":"https://api.github.com/users/phantien133","html_url":"https://github.com/phantien133","followers_url":"https://api.github.com/users/phantien133/followers","following_url":"https://api.github.com/users/phantien133/following{/other_user}","gists_url":"https://api.github.com/users/phantien133/gists{/gist_id}","starred_url":"https://api.github.com/users/phantien133/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phantien133/subscriptions","organizations_url":"https://api.github.com/users/phantien133/orgs","repos_url":"https://api.github.com/users/phantien133/repos","events_url":"https://api.github.com/users/phantien133/events{/privacy}","received_events_url":"https://api.github.com/users/phantien133/received_events","type":"User","site_admin":false},"repo":{"id":71453142,"name":"fels_205","full_name":"phantien133/fels_205","owner":{"login":"phantien133","id":22651625,"avatar_url":"https://avatars.githubusercontent.com/u/22651625?v=3","gravatar_id":"","url":"https://api.github.com/users/phantien133","html_url":"https://github.com/phantien133","followers_url":"https://api.github.com/users/phantien133/followers","following_url":"https://api.github.com/users/phantien133/following{/other_user}","gists_url":"https://api.github.com/users/phantien133/gists{/gist_id}","starred_url":"https://api.github.com/users/phantien133/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phantien133/subscriptions","organizations_url":"https://api.github.com/users/phantien133/orgs","repos_url":"https://api.github.com/users/phantien133/repos","events_url":"https://api.github.com/users/phantien133/events{/privacy}","received_events_url":"https://api.github.com/users/phantien133/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phantien133/fels_205","description":"Framgia Edu DN - Training Project","fork":true,"url":"https://api.github.com/repos/phantien133/fels_205","forks_url":"https://api.github.com/repos/phantien133/fels_205/forks","keys_url":"https://api.github.com/repos/phantien133/fels_205/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phantien133/fels_205/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phantien133/fels_205/teams","hooks_url":"https://api.github.com/repos/phantien133/fels_205/hooks","issue_events_url":"https://api.github.com/repos/phantien133/fels_205/issues/events{/number}","events_url":"https://api.github.com/repos/phantien133/fels_205/events","assignees_url":"https://api.github.com/repos/phantien133/fels_205/assignees{/user}","branches_url":"https://api.github.com/repos/phantien133/fels_205/branches{/branch}","tags_url":"https://api.github.com/repos/phantien133/fels_205/tags","blobs_url":"https://api.github.com/repos/phantien133/fels_205/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phantien133/fels_205/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phantien133/fels_205/git/refs{/sha}","trees_url":"https://api.github.com/repos/phantien133/fels_205/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phantien133/fels_205/statuses/{sha}","languages_url":"https://api.github.com/repos/phantien133/fels_205/languages","stargazers_url":"https://api.github.com/repos/phantien133/fels_205/stargazers","contributors_url":"https://api.github.com/repos/phantien133/fels_205/contributors","subscribers_url":"https://api.github.com/repos/phantien133/fels_205/subscribers","subscription_url":"https://api.github.com/repos/phantien133/fels_205/subscription","commits_url":"https://api.github.com/repos/phantien133/fels_205/commits{/sha}","git_commits_url":"https://api.github.com/repos/phantien133/fels_205/git/commits{/sha}","comments_url":"https://api.github.com/repos/phantien133/fels_205/comments{/number}","issue_comment_url":"https://api.github.com/repos/phantien133/fels_205/issues/comments{/number}","contents_url":"https://api.github.com/repos/phantien133/fels_205/contents/{+path}","compare_url":"https://api.github.com/repos/phantien133/fels_205/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phantien133/fels_205/merges","archive_url":"https://api.github.com/repos/phantien133/fels_205/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phantien133/fels_205/downloads","issues_url":"https://api.github.com/repos/phantien133/fels_205/issues{/number}","pulls_url":"https://api.github.com/repos/phantien133/fels_205/pulls{/number}","milestones_url":"https://api.github.com/repos/phantien133/fels_205/milestones{/number}","notifications_url":"https://api.github.com/repos/phantien133/fels_205/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phantien133/fels_205/labels{/name}","releases_url":"https://api.github.com/repos/phantien133/fels_205/releases{/id}","deployments_url":"https://api.github.com/repos/phantien133/fels_205/deployments","created_at":"2016-10-20T10:42:34Z","updated_at":"2016-10-20T02:08:37Z","pushed_at":"2016-10-24T06:28:20Z","git_url":"git://github.com/phantien133/fels_205.git","ssh_url":"git@github.com:phantien133/fels_205.git","clone_url":"https://github.com/phantien133/fels_205.git","svn_url":"https://github.com/phantien133/fels_205","homepage":"","size":67,"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":"eda8295d8a17cf1d01ec7268719e0df562c53609","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":71416312,"name":"fels_205","full_name":"framgia/fels_205","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_205","description":"Framgia Edu DN - Training Project","fork":false,"url":"https://api.github.com/repos/framgia/fels_205","forks_url":"https://api.github.com/repos/framgia/fels_205/forks","keys_url":"https://api.github.com/repos/framgia/fels_205/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_205/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_205/teams","hooks_url":"https://api.github.com/repos/framgia/fels_205/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_205/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_205/events","assignees_url":"https://api.github.com/repos/framgia/fels_205/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_205/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_205/tags","blobs_url":"https://api.github.com/repos/framgia/fels_205/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_205/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_205/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_205/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_205/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_205/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_205/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_205/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_205/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_205/subscription","commits_url":"https://api.github.com/repos/framgia/fels_205/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_205/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_205/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_205/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_205/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_205/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_205/merges","archive_url":"https://api.github.com/repos/framgia/fels_205/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_205/downloads","issues_url":"https://api.github.com/repos/framgia/fels_205/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_205/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_205/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_205/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_205/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_205/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_205/deployments","created_at":"2016-10-20T02:05:29Z","updated_at":"2016-10-20T02:08:37Z","pushed_at":"2016-10-24T06:28:21Z","git_url":"git://github.com/framgia/fels_205.git","ssh_url":"git@github.com:framgia/fels_205.git","clone_url":"https://github.com/framgia/fels_205.git","svn_url":"https://github.com/framgia/fels_205","homepage":"","size":48,"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_205/pulls/4"},"html":{"href":"https://github.com/framgia/fels_205/pull/4"},"issue":{"href":"https://api.github.com/repos/framgia/fels_205/issues/4"},"comments":{"href":"https://api.github.com/repos/framgia/fels_205/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_205/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_205/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_205/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_205/statuses/7c5250923799119105b1b7e0611d7a8e507ee7b3"}}}}
{"actor":{"display_login":"phamvanbk11"}}