{"action":"created","comment":{"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/pulls/comments/61935519","id":61935519,"diff_hunk":"@@ -0,0 +1,25 @@\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[:success] = 'Welcome!'\n+      redirect_to login_path\n+    else\n+      render :new, status: :unprocessable_entity\n+    end\n+  end\n+\n+  def index\n+    @users = User.all\n+  end\n+\n+  private\n+\n+  def user_params\n+    params.require(:user).permit(:name, :email, :password)","path":"app/controllers/users_controller.rb","position":23,"original_position":23,"commit_id":"9ea8a96d61adc44e46be1c244c7be2043620ce25","original_commit_id":"9ea8a96d61adc44e46be1c244c7be2043620ce25","user":{"login":"Xin-Tong","id":7357683,"avatar_url":"https://avatars.githubusercontent.com/u/7357683?v=3","gravatar_id":"","url":"https://api.github.com/users/Xin-Tong","html_url":"https://github.com/Xin-Tong","followers_url":"https://api.github.com/users/Xin-Tong/followers","following_url":"https://api.github.com/users/Xin-Tong/following{/other_user}","gists_url":"https://api.github.com/users/Xin-Tong/gists{/gist_id}","starred_url":"https://api.github.com/users/Xin-Tong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xin-Tong/subscriptions","organizations_url":"https://api.github.com/users/Xin-Tong/orgs","repos_url":"https://api.github.com/users/Xin-Tong/repos","events_url":"https://api.github.com/users/Xin-Tong/events{/privacy}","received_events_url":"https://api.github.com/users/Xin-Tong/received_events","type":"User","site_admin":false},"body":"It will raise ```ActionController::ParameterMissing: param is missing or the value is empty: user``` since we use `require` here. But I don't know how to reproduce it in browser. Is it an issue we need to handle?","created_at":"2016-05-03T18:53:32Z","updated_at":"2016-05-03T18:53:32Z","html_url":"https://github.com/AppFolioOnboarding/image-sharer-xin/pull/32#discussion_r61935519","pull_request_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/pulls/comments/61935519"},"html":{"href":"https://github.com/AppFolioOnboarding/image-sharer-xin/pull/32#discussion_r61935519"},"pull_request":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/pulls/32","id":68109648,"html_url":"https://github.com/AppFolioOnboarding/image-sharer-xin/pull/32","diff_url":"https://github.com/AppFolioOnboarding/image-sharer-xin/pull/32.diff","patch_url":"https://github.com/AppFolioOnboarding/image-sharer-xin/pull/32.patch","issue_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/issues/32","number":32,"state":"open","locked":false,"title":"Authentication","user":{"login":"Xin-Tong","id":7357683,"avatar_url":"https://avatars.githubusercontent.com/u/7357683?v=3","gravatar_id":"","url":"https://api.github.com/users/Xin-Tong","html_url":"https://github.com/Xin-Tong","followers_url":"https://api.github.com/users/Xin-Tong/followers","following_url":"https://api.github.com/users/Xin-Tong/following{/other_user}","gists_url":"https://api.github.com/users/Xin-Tong/gists{/gist_id}","starred_url":"https://api.github.com/users/Xin-Tong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xin-Tong/subscriptions","organizations_url":"https://api.github.com/users/Xin-Tong/orgs","repos_url":"https://api.github.com/users/Xin-Tong/repos","events_url":"https://api.github.com/users/Xin-Tong/events{/privacy}","received_events_url":"https://api.github.com/users/Xin-Tong/received_events","type":"User","site_admin":false},"body":"Closes #11 \r\n","created_at":"2016-04-27T19:21:50Z","updated_at":"2016-05-03T18:53:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df916961eac897e3cb912ccd7f7a9ff250ec36c2","assignee":{"login":"d-ray","id":1847194,"avatar_url":"https://avatars.githubusercontent.com/u/1847194?v=3","gravatar_id":"","url":"https://api.github.com/users/d-ray","html_url":"https://github.com/d-ray","followers_url":"https://api.github.com/users/d-ray/followers","following_url":"https://api.github.com/users/d-ray/following{/other_user}","gists_url":"https://api.github.com/users/d-ray/gists{/gist_id}","starred_url":"https://api.github.com/users/d-ray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-ray/subscriptions","organizations_url":"https://api.github.com/users/d-ray/orgs","repos_url":"https://api.github.com/users/d-ray/repos","events_url":"https://api.github.com/users/d-ray/events{/privacy}","received_events_url":"https://api.github.com/users/d-ray/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/pulls/32/commits","review_comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/pulls/32/comments","review_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/issues/32/comments","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/statuses/9ea8a96d61adc44e46be1c244c7be2043620ce25","head":{"label":"AppFolioOnboarding:Authentication","ref":"Authentication","sha":"9ea8a96d61adc44e46be1c244c7be2043620ce25","user":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"repo":{"id":55995733,"name":"image-sharer-xin","full_name":"AppFolioOnboarding/image-sharer-xin","owner":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AppFolioOnboarding/image-sharer-xin","description":"","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin","forks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/deployments","created_at":"2016-04-11T18:11:26Z","updated_at":"2016-04-11T18:13:19Z","pushed_at":"2016-05-03T18:01:47Z","git_url":"git://github.com/AppFolioOnboarding/image-sharer-xin.git","ssh_url":"git@github.com:AppFolioOnboarding/image-sharer-xin.git","clone_url":"https://github.com/AppFolioOnboarding/image-sharer-xin.git","svn_url":"https://github.com/AppFolioOnboarding/image-sharer-xin","homepage":null,"size":99,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"AppFolioOnboarding:master","ref":"master","sha":"746edb0d85c51b123a7f6ddfac1727498b2797c9","user":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"repo":{"id":55995733,"name":"image-sharer-xin","full_name":"AppFolioOnboarding/image-sharer-xin","owner":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AppFolioOnboarding/image-sharer-xin","description":"","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin","forks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/deployments","created_at":"2016-04-11T18:11:26Z","updated_at":"2016-04-11T18:13:19Z","pushed_at":"2016-05-03T18:01:47Z","git_url":"git://github.com/AppFolioOnboarding/image-sharer-xin.git","ssh_url":"git@github.com:AppFolioOnboarding/image-sharer-xin.git","clone_url":"https://github.com/AppFolioOnboarding/image-sharer-xin.git","svn_url":"https://github.com/AppFolioOnboarding/image-sharer-xin","homepage":null,"size":99,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/pulls/32"},"html":{"href":"https://github.com/AppFolioOnboarding/image-sharer-xin/pull/32"},"issue":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/issues/32"},"comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-xin/statuses/9ea8a96d61adc44e46be1c244c7be2043620ce25"}}}}