{"action":"created","comment":{"url":"https://api.github.com/repos/hidacchi/protospace/pulls/comments/44279991","id":44279991,"diff_hunk":"@@ -1,18 +1,22 @@\n class UsersController < ApplicationController\n \n-  # before_action :authenticate_user! #そもそもview側でif分使ってユーザーページの表示、非表示を管理しているのでいらない。\n+  # before_action :authenticate_user!, only: [:show]\n \n   def show\n+    @user = User.includes(:prototypes).find(params[:id])\n+    @prototypes = @user.prototypes.page(params[:page])\n   end\n \n-  def new\n+  def edit\n   end\n \n-  def edit\n+  def update\n+    current_user.update(user_params)\n+    redirect_to root_path","path":"app/controllers/users_controller.rb","position":18,"original_position":18,"commit_id":"7a2529914f1846770f785ef17565e8fe508c0a14","original_commit_id":"7a2529914f1846770f785ef17565e8fe508c0a14","user":{"login":"saino-katsutoshi","id":12888685,"avatar_url":"https://avatars.githubusercontent.com/u/12888685?v=3","gravatar_id":"","url":"https://api.github.com/users/saino-katsutoshi","html_url":"https://github.com/saino-katsutoshi","followers_url":"https://api.github.com/users/saino-katsutoshi/followers","following_url":"https://api.github.com/users/saino-katsutoshi/following{/other_user}","gists_url":"https://api.github.com/users/saino-katsutoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/saino-katsutoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saino-katsutoshi/subscriptions","organizations_url":"https://api.github.com/users/saino-katsutoshi/orgs","repos_url":"https://api.github.com/users/saino-katsutoshi/repos","events_url":"https://api.github.com/users/saino-katsutoshi/events{/privacy}","received_events_url":"https://api.github.com/users/saino-katsutoshi/received_events","type":"User","site_admin":false},"body":"編集したらマイページにリダイレクトするのが自然だと思います","created_at":"2015-11-09T14:30:44Z","updated_at":"2015-11-09T14:30:44Z","html_url":"https://github.com/hidacchi/protospace/pull/15#discussion_r44279991","pull_request_url":"https://api.github.com/repos/hidacchi/protospace/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/hidacchi/protospace/pulls/comments/44279991"},"html":{"href":"https://github.com/hidacchi/protospace/pull/15#discussion_r44279991"},"pull_request":{"href":"https://api.github.com/repos/hidacchi/protospace/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/hidacchi/protospace/pulls/15","id":50126932,"html_url":"https://github.com/hidacchi/protospace/pull/15","diff_url":"https://github.com/hidacchi/protospace/pull/15.diff","patch_url":"https://github.com/hidacchi/protospace/pull/15.patch","issue_url":"https://api.github.com/repos/hidacchi/protospace/issues/15","number":15,"state":"open","locked":false,"title":"userのマイページ、Edit Profile／prototypeの投稿、編集、削除機能の実装","user":{"login":"hidacchi","id":10804742,"avatar_url":"https://avatars.githubusercontent.com/u/10804742?v=3","gravatar_id":"","url":"https://api.github.com/users/hidacchi","html_url":"https://github.com/hidacchi","followers_url":"https://api.github.com/users/hidacchi/followers","following_url":"https://api.github.com/users/hidacchi/following{/other_user}","gists_url":"https://api.github.com/users/hidacchi/gists{/gist_id}","starred_url":"https://api.github.com/users/hidacchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hidacchi/subscriptions","organizations_url":"https://api.github.com/users/hidacchi/orgs","repos_url":"https://api.github.com/users/hidacchi/repos","events_url":"https://api.github.com/users/hidacchi/events{/privacy}","received_events_url":"https://api.github.com/users/hidacchi/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nuserのマイページ、Edit Profile／prototypeの投稿、編集、削除機能の実装、またそれに関連する全てのviewファイルも修正","created_at":"2015-11-09T14:17:14Z","updated_at":"2015-11-09T14:30:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea063a215441f93b005512fc2ab93acff52e3905","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hidacchi/protospace/pulls/15/commits","review_comments_url":"https://api.github.com/repos/hidacchi/protospace/pulls/15/comments","review_comment_url":"https://api.github.com/repos/hidacchi/protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hidacchi/protospace/issues/15/comments","statuses_url":"https://api.github.com/repos/hidacchi/protospace/statuses/7a2529914f1846770f785ef17565e8fe508c0a14","head":{"label":"hidacchi:add-prototype&user-post_edit_delete","ref":"add-prototype&user-post_edit_delete","sha":"7a2529914f1846770f785ef17565e8fe508c0a14","user":{"login":"hidacchi","id":10804742,"avatar_url":"https://avatars.githubusercontent.com/u/10804742?v=3","gravatar_id":"","url":"https://api.github.com/users/hidacchi","html_url":"https://github.com/hidacchi","followers_url":"https://api.github.com/users/hidacchi/followers","following_url":"https://api.github.com/users/hidacchi/following{/other_user}","gists_url":"https://api.github.com/users/hidacchi/gists{/gist_id}","starred_url":"https://api.github.com/users/hidacchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hidacchi/subscriptions","organizations_url":"https://api.github.com/users/hidacchi/orgs","repos_url":"https://api.github.com/users/hidacchi/repos","events_url":"https://api.github.com/users/hidacchi/events{/privacy}","received_events_url":"https://api.github.com/users/hidacchi/received_events","type":"User","site_admin":false},"repo":{"id":40952196,"name":"protospace","full_name":"hidacchi/protospace","owner":{"login":"hidacchi","id":10804742,"avatar_url":"https://avatars.githubusercontent.com/u/10804742?v=3","gravatar_id":"","url":"https://api.github.com/users/hidacchi","html_url":"https://github.com/hidacchi","followers_url":"https://api.github.com/users/hidacchi/followers","following_url":"https://api.github.com/users/hidacchi/following{/other_user}","gists_url":"https://api.github.com/users/hidacchi/gists{/gist_id}","starred_url":"https://api.github.com/users/hidacchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hidacchi/subscriptions","organizations_url":"https://api.github.com/users/hidacchi/orgs","repos_url":"https://api.github.com/users/hidacchi/repos","events_url":"https://api.github.com/users/hidacchi/events{/privacy}","received_events_url":"https://api.github.com/users/hidacchi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hidacchi/protospace","description":"prototypeの投稿サービス","fork":false,"url":"https://api.github.com/repos/hidacchi/protospace","forks_url":"https://api.github.com/repos/hidacchi/protospace/forks","keys_url":"https://api.github.com/repos/hidacchi/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hidacchi/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hidacchi/protospace/teams","hooks_url":"https://api.github.com/repos/hidacchi/protospace/hooks","issue_events_url":"https://api.github.com/repos/hidacchi/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/hidacchi/protospace/events","assignees_url":"https://api.github.com/repos/hidacchi/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/hidacchi/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/hidacchi/protospace/tags","blobs_url":"https://api.github.com/repos/hidacchi/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hidacchi/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hidacchi/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/hidacchi/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hidacchi/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/hidacchi/protospace/languages","stargazers_url":"https://api.github.com/repos/hidacchi/protospace/stargazers","contributors_url":"https://api.github.com/repos/hidacchi/protospace/contributors","subscribers_url":"https://api.github.com/repos/hidacchi/protospace/subscribers","subscription_url":"https://api.github.com/repos/hidacchi/protospace/subscription","commits_url":"https://api.github.com/repos/hidacchi/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/hidacchi/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/hidacchi/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/hidacchi/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/hidacchi/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/hidacchi/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hidacchi/protospace/merges","archive_url":"https://api.github.com/repos/hidacchi/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hidacchi/protospace/downloads","issues_url":"https://api.github.com/repos/hidacchi/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/hidacchi/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/hidacchi/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/hidacchi/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hidacchi/protospace/labels{/name}","releases_url":"https://api.github.com/repos/hidacchi/protospace/releases{/id}","created_at":"2015-08-18T05:15:56Z","updated_at":"2015-08-19T08:20:11Z","pushed_at":"2015-11-09T14:17:14Z","git_url":"git://github.com/hidacchi/protospace.git","ssh_url":"git@github.com:hidacchi/protospace.git","clone_url":"https://github.com/hidacchi/protospace.git","svn_url":"https://github.com/hidacchi/protospace","homepage":null,"size":2544,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"hidacchi:master","ref":"master","sha":"72da9e15405cc9dd14e5d9d2950d3557a74fd773","user":{"login":"hidacchi","id":10804742,"avatar_url":"https://avatars.githubusercontent.com/u/10804742?v=3","gravatar_id":"","url":"https://api.github.com/users/hidacchi","html_url":"https://github.com/hidacchi","followers_url":"https://api.github.com/users/hidacchi/followers","following_url":"https://api.github.com/users/hidacchi/following{/other_user}","gists_url":"https://api.github.com/users/hidacchi/gists{/gist_id}","starred_url":"https://api.github.com/users/hidacchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hidacchi/subscriptions","organizations_url":"https://api.github.com/users/hidacchi/orgs","repos_url":"https://api.github.com/users/hidacchi/repos","events_url":"https://api.github.com/users/hidacchi/events{/privacy}","received_events_url":"https://api.github.com/users/hidacchi/received_events","type":"User","site_admin":false},"repo":{"id":40952196,"name":"protospace","full_name":"hidacchi/protospace","owner":{"login":"hidacchi","id":10804742,"avatar_url":"https://avatars.githubusercontent.com/u/10804742?v=3","gravatar_id":"","url":"https://api.github.com/users/hidacchi","html_url":"https://github.com/hidacchi","followers_url":"https://api.github.com/users/hidacchi/followers","following_url":"https://api.github.com/users/hidacchi/following{/other_user}","gists_url":"https://api.github.com/users/hidacchi/gists{/gist_id}","starred_url":"https://api.github.com/users/hidacchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hidacchi/subscriptions","organizations_url":"https://api.github.com/users/hidacchi/orgs","repos_url":"https://api.github.com/users/hidacchi/repos","events_url":"https://api.github.com/users/hidacchi/events{/privacy}","received_events_url":"https://api.github.com/users/hidacchi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hidacchi/protospace","description":"prototypeの投稿サービス","fork":false,"url":"https://api.github.com/repos/hidacchi/protospace","forks_url":"https://api.github.com/repos/hidacchi/protospace/forks","keys_url":"https://api.github.com/repos/hidacchi/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hidacchi/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hidacchi/protospace/teams","hooks_url":"https://api.github.com/repos/hidacchi/protospace/hooks","issue_events_url":"https://api.github.com/repos/hidacchi/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/hidacchi/protospace/events","assignees_url":"https://api.github.com/repos/hidacchi/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/hidacchi/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/hidacchi/protospace/tags","blobs_url":"https://api.github.com/repos/hidacchi/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hidacchi/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hidacchi/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/hidacchi/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hidacchi/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/hidacchi/protospace/languages","stargazers_url":"https://api.github.com/repos/hidacchi/protospace/stargazers","contributors_url":"https://api.github.com/repos/hidacchi/protospace/contributors","subscribers_url":"https://api.github.com/repos/hidacchi/protospace/subscribers","subscription_url":"https://api.github.com/repos/hidacchi/protospace/subscription","commits_url":"https://api.github.com/repos/hidacchi/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/hidacchi/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/hidacchi/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/hidacchi/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/hidacchi/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/hidacchi/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hidacchi/protospace/merges","archive_url":"https://api.github.com/repos/hidacchi/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hidacchi/protospace/downloads","issues_url":"https://api.github.com/repos/hidacchi/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/hidacchi/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/hidacchi/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/hidacchi/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hidacchi/protospace/labels{/name}","releases_url":"https://api.github.com/repos/hidacchi/protospace/releases{/id}","created_at":"2015-08-18T05:15:56Z","updated_at":"2015-08-19T08:20:11Z","pushed_at":"2015-11-09T14:17:14Z","git_url":"git://github.com/hidacchi/protospace.git","ssh_url":"git@github.com:hidacchi/protospace.git","clone_url":"https://github.com/hidacchi/protospace.git","svn_url":"https://github.com/hidacchi/protospace","homepage":null,"size":2544,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hidacchi/protospace/pulls/15"},"html":{"href":"https://github.com/hidacchi/protospace/pull/15"},"issue":{"href":"https://api.github.com/repos/hidacchi/protospace/issues/15"},"comments":{"href":"https://api.github.com/repos/hidacchi/protospace/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/hidacchi/protospace/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/hidacchi/protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hidacchi/protospace/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/hidacchi/protospace/statuses/7a2529914f1846770f785ef17565e8fe508c0a14"}}}}