{"action":"created","comment":{"url":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/comments/58311684","id":58311684,"diff_hunk":"@@ -31,6 +36,13 @@ def edit\n \n   def update\n     if @poem.update(poem_params)\n+\n+      if poemimage_params[:image]\n+        @poemimage = Poemimage.find_by(poem_id: @poem.id)\n+        @poemimage.image = poemimage_params[:image]\n+        @poemimage.save","path":"app/controllers/poems_controller.rb","position":27,"original_position":27,"commit_id":"4b6f73152ceaa768a2367f7103c2544e10e29357","original_commit_id":"4b6f73152ceaa768a2367f7103c2544e10e29357","user":{"login":"nasum","id":1456806,"avatar_url":"https://avatars.githubusercontent.com/u/1456806?v=3","gravatar_id":"","url":"https://api.github.com/users/nasum","html_url":"https://github.com/nasum","followers_url":"https://api.github.com/users/nasum/followers","following_url":"https://api.github.com/users/nasum/following{/other_user}","gists_url":"https://api.github.com/users/nasum/gists{/gist_id}","starred_url":"https://api.github.com/users/nasum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasum/subscriptions","organizations_url":"https://api.github.com/users/nasum/orgs","repos_url":"https://api.github.com/users/nasum/repos","events_url":"https://api.github.com/users/nasum/events{/privacy}","received_events_url":"https://api.github.com/users/nasum/received_events","type":"User","site_admin":false},"body":"この辺ももっと良いやり方があるはず","created_at":"2016-04-03T15:09:27Z","updated_at":"2016-04-03T15:09:27Z","html_url":"https://github.com/CWPoemDev/nasulog/pull/168#discussion_r58311684","pull_request_url":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/168","_links":{"self":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/comments/58311684"},"html":{"href":"https://github.com/CWPoemDev/nasulog/pull/168#discussion_r58311684"},"pull_request":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/168"}}},"pull_request":{"url":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/168","id":64241119,"html_url":"https://github.com/CWPoemDev/nasulog/pull/168","diff_url":"https://github.com/CWPoemDev/nasulog/pull/168.diff","patch_url":"https://github.com/CWPoemDev/nasulog/pull/168.patch","issue_url":"https://api.github.com/repos/CWPoemDev/nasulog/issues/168","number":168,"state":"open","locked":false,"title":"FIX #6 画像を投稿する機能の追加","user":{"login":"nasum","id":1456806,"avatar_url":"https://avatars.githubusercontent.com/u/1456806?v=3","gravatar_id":"","url":"https://api.github.com/users/nasum","html_url":"https://github.com/nasum","followers_url":"https://api.github.com/users/nasum/followers","following_url":"https://api.github.com/users/nasum/following{/other_user}","gists_url":"https://api.github.com/users/nasum/gists{/gist_id}","starred_url":"https://api.github.com/users/nasum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasum/subscriptions","organizations_url":"https://api.github.com/users/nasum/orgs","repos_url":"https://api.github.com/users/nasum/repos","events_url":"https://api.github.com/users/nasum/events{/privacy}","received_events_url":"https://api.github.com/users/nasum/received_events","type":"User","site_admin":false},"body":"## 投稿時\r\n![image](https://cloud.githubusercontent.com/assets/1456806/14060899/4397d7bc-f3b5-11e5-8708-6e7ef44e957c.png)\r\n\r\n## 投稿後\r\n![image](https://cloud.githubusercontent.com/assets/1456806/14060912/8d88865a-f3b5-11e5-8246-3f528637703f.png)","created_at":"2016-03-26T15:48:41Z","updated_at":"2016-04-03T15:09:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8483865c58ec9cc82c8127e5173035e9129ec02","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/168/commits","review_comments_url":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/168/comments","review_comment_url":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CWPoemDev/nasulog/issues/168/comments","statuses_url":"https://api.github.com/repos/CWPoemDev/nasulog/statuses/4b6f73152ceaa768a2367f7103c2544e10e29357","head":{"label":"CWPoemDev:iss-6","ref":"iss-6","sha":"4b6f73152ceaa768a2367f7103c2544e10e29357","user":{"login":"CWPoemDev","id":16775870,"avatar_url":"https://avatars.githubusercontent.com/u/16775870?v=3","gravatar_id":"","url":"https://api.github.com/users/CWPoemDev","html_url":"https://github.com/CWPoemDev","followers_url":"https://api.github.com/users/CWPoemDev/followers","following_url":"https://api.github.com/users/CWPoemDev/following{/other_user}","gists_url":"https://api.github.com/users/CWPoemDev/gists{/gist_id}","starred_url":"https://api.github.com/users/CWPoemDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CWPoemDev/subscriptions","organizations_url":"https://api.github.com/users/CWPoemDev/orgs","repos_url":"https://api.github.com/users/CWPoemDev/repos","events_url":"https://api.github.com/users/CWPoemDev/events{/privacy}","received_events_url":"https://api.github.com/users/CWPoemDev/received_events","type":"Organization","site_admin":false},"repo":{"id":48110379,"name":"nasulog","full_name":"CWPoemDev/nasulog","owner":{"login":"CWPoemDev","id":16775870,"avatar_url":"https://avatars.githubusercontent.com/u/16775870?v=3","gravatar_id":"","url":"https://api.github.com/users/CWPoemDev","html_url":"https://github.com/CWPoemDev","followers_url":"https://api.github.com/users/CWPoemDev/followers","following_url":"https://api.github.com/users/CWPoemDev/following{/other_user}","gists_url":"https://api.github.com/users/CWPoemDev/gists{/gist_id}","starred_url":"https://api.github.com/users/CWPoemDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CWPoemDev/subscriptions","organizations_url":"https://api.github.com/users/CWPoemDev/orgs","repos_url":"https://api.github.com/users/CWPoemDev/repos","events_url":"https://api.github.com/users/CWPoemDev/events{/privacy}","received_events_url":"https://api.github.com/users/CWPoemDev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CWPoemDev/nasulog","description":"ポエム投稿サービス","fork":false,"url":"https://api.github.com/repos/CWPoemDev/nasulog","forks_url":"https://api.github.com/repos/CWPoemDev/nasulog/forks","keys_url":"https://api.github.com/repos/CWPoemDev/nasulog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CWPoemDev/nasulog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CWPoemDev/nasulog/teams","hooks_url":"https://api.github.com/repos/CWPoemDev/nasulog/hooks","issue_events_url":"https://api.github.com/repos/CWPoemDev/nasulog/issues/events{/number}","events_url":"https://api.github.com/repos/CWPoemDev/nasulog/events","assignees_url":"https://api.github.com/repos/CWPoemDev/nasulog/assignees{/user}","branches_url":"https://api.github.com/repos/CWPoemDev/nasulog/branches{/branch}","tags_url":"https://api.github.com/repos/CWPoemDev/nasulog/tags","blobs_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/refs{/sha}","trees_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CWPoemDev/nasulog/statuses/{sha}","languages_url":"https://api.github.com/repos/CWPoemDev/nasulog/languages","stargazers_url":"https://api.github.com/repos/CWPoemDev/nasulog/stargazers","contributors_url":"https://api.github.com/repos/CWPoemDev/nasulog/contributors","subscribers_url":"https://api.github.com/repos/CWPoemDev/nasulog/subscribers","subscription_url":"https://api.github.com/repos/CWPoemDev/nasulog/subscription","commits_url":"https://api.github.com/repos/CWPoemDev/nasulog/commits{/sha}","git_commits_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/commits{/sha}","comments_url":"https://api.github.com/repos/CWPoemDev/nasulog/comments{/number}","issue_comment_url":"https://api.github.com/repos/CWPoemDev/nasulog/issues/comments{/number}","contents_url":"https://api.github.com/repos/CWPoemDev/nasulog/contents/{+path}","compare_url":"https://api.github.com/repos/CWPoemDev/nasulog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CWPoemDev/nasulog/merges","archive_url":"https://api.github.com/repos/CWPoemDev/nasulog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CWPoemDev/nasulog/downloads","issues_url":"https://api.github.com/repos/CWPoemDev/nasulog/issues{/number}","pulls_url":"https://api.github.com/repos/CWPoemDev/nasulog/pulls{/number}","milestones_url":"https://api.github.com/repos/CWPoemDev/nasulog/milestones{/number}","notifications_url":"https://api.github.com/repos/CWPoemDev/nasulog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CWPoemDev/nasulog/labels{/name}","releases_url":"https://api.github.com/repos/CWPoemDev/nasulog/releases{/id}","deployments_url":"https://api.github.com/repos/CWPoemDev/nasulog/deployments","created_at":"2015-12-16T12:57:40Z","updated_at":"2016-03-30T15:32:10Z","pushed_at":"2016-04-03T15:07:57Z","git_url":"git://github.com/CWPoemDev/nasulog.git","ssh_url":"git@github.com:CWPoemDev/nasulog.git","clone_url":"https://github.com/CWPoemDev/nasulog.git","svn_url":"https://github.com/CWPoemDev/nasulog","homepage":"","size":4588,"stargazers_count":14,"watchers_count":14,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":36,"forks":6,"open_issues":36,"watchers":14,"default_branch":"master"}},"base":{"label":"CWPoemDev:master","ref":"master","sha":"2edebaa78c0c76b8c2343a028a12fbe147a3b0ca","user":{"login":"CWPoemDev","id":16775870,"avatar_url":"https://avatars.githubusercontent.com/u/16775870?v=3","gravatar_id":"","url":"https://api.github.com/users/CWPoemDev","html_url":"https://github.com/CWPoemDev","followers_url":"https://api.github.com/users/CWPoemDev/followers","following_url":"https://api.github.com/users/CWPoemDev/following{/other_user}","gists_url":"https://api.github.com/users/CWPoemDev/gists{/gist_id}","starred_url":"https://api.github.com/users/CWPoemDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CWPoemDev/subscriptions","organizations_url":"https://api.github.com/users/CWPoemDev/orgs","repos_url":"https://api.github.com/users/CWPoemDev/repos","events_url":"https://api.github.com/users/CWPoemDev/events{/privacy}","received_events_url":"https://api.github.com/users/CWPoemDev/received_events","type":"Organization","site_admin":false},"repo":{"id":48110379,"name":"nasulog","full_name":"CWPoemDev/nasulog","owner":{"login":"CWPoemDev","id":16775870,"avatar_url":"https://avatars.githubusercontent.com/u/16775870?v=3","gravatar_id":"","url":"https://api.github.com/users/CWPoemDev","html_url":"https://github.com/CWPoemDev","followers_url":"https://api.github.com/users/CWPoemDev/followers","following_url":"https://api.github.com/users/CWPoemDev/following{/other_user}","gists_url":"https://api.github.com/users/CWPoemDev/gists{/gist_id}","starred_url":"https://api.github.com/users/CWPoemDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CWPoemDev/subscriptions","organizations_url":"https://api.github.com/users/CWPoemDev/orgs","repos_url":"https://api.github.com/users/CWPoemDev/repos","events_url":"https://api.github.com/users/CWPoemDev/events{/privacy}","received_events_url":"https://api.github.com/users/CWPoemDev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CWPoemDev/nasulog","description":"ポエム投稿サービス","fork":false,"url":"https://api.github.com/repos/CWPoemDev/nasulog","forks_url":"https://api.github.com/repos/CWPoemDev/nasulog/forks","keys_url":"https://api.github.com/repos/CWPoemDev/nasulog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CWPoemDev/nasulog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CWPoemDev/nasulog/teams","hooks_url":"https://api.github.com/repos/CWPoemDev/nasulog/hooks","issue_events_url":"https://api.github.com/repos/CWPoemDev/nasulog/issues/events{/number}","events_url":"https://api.github.com/repos/CWPoemDev/nasulog/events","assignees_url":"https://api.github.com/repos/CWPoemDev/nasulog/assignees{/user}","branches_url":"https://api.github.com/repos/CWPoemDev/nasulog/branches{/branch}","tags_url":"https://api.github.com/repos/CWPoemDev/nasulog/tags","blobs_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/refs{/sha}","trees_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CWPoemDev/nasulog/statuses/{sha}","languages_url":"https://api.github.com/repos/CWPoemDev/nasulog/languages","stargazers_url":"https://api.github.com/repos/CWPoemDev/nasulog/stargazers","contributors_url":"https://api.github.com/repos/CWPoemDev/nasulog/contributors","subscribers_url":"https://api.github.com/repos/CWPoemDev/nasulog/subscribers","subscription_url":"https://api.github.com/repos/CWPoemDev/nasulog/subscription","commits_url":"https://api.github.com/repos/CWPoemDev/nasulog/commits{/sha}","git_commits_url":"https://api.github.com/repos/CWPoemDev/nasulog/git/commits{/sha}","comments_url":"https://api.github.com/repos/CWPoemDev/nasulog/comments{/number}","issue_comment_url":"https://api.github.com/repos/CWPoemDev/nasulog/issues/comments{/number}","contents_url":"https://api.github.com/repos/CWPoemDev/nasulog/contents/{+path}","compare_url":"https://api.github.com/repos/CWPoemDev/nasulog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CWPoemDev/nasulog/merges","archive_url":"https://api.github.com/repos/CWPoemDev/nasulog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CWPoemDev/nasulog/downloads","issues_url":"https://api.github.com/repos/CWPoemDev/nasulog/issues{/number}","pulls_url":"https://api.github.com/repos/CWPoemDev/nasulog/pulls{/number}","milestones_url":"https://api.github.com/repos/CWPoemDev/nasulog/milestones{/number}","notifications_url":"https://api.github.com/repos/CWPoemDev/nasulog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CWPoemDev/nasulog/labels{/name}","releases_url":"https://api.github.com/repos/CWPoemDev/nasulog/releases{/id}","deployments_url":"https://api.github.com/repos/CWPoemDev/nasulog/deployments","created_at":"2015-12-16T12:57:40Z","updated_at":"2016-03-30T15:32:10Z","pushed_at":"2016-04-03T15:07:57Z","git_url":"git://github.com/CWPoemDev/nasulog.git","ssh_url":"git@github.com:CWPoemDev/nasulog.git","clone_url":"https://github.com/CWPoemDev/nasulog.git","svn_url":"https://github.com/CWPoemDev/nasulog","homepage":"","size":4588,"stargazers_count":14,"watchers_count":14,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":36,"forks":6,"open_issues":36,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/168"},"html":{"href":"https://github.com/CWPoemDev/nasulog/pull/168"},"issue":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/issues/168"},"comments":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/issues/168/comments"},"review_comments":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/168/comments"},"review_comment":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/pulls/168/commits"},"statuses":{"href":"https://api.github.com/repos/CWPoemDev/nasulog/statuses/4b6f73152ceaa768a2367f7103c2544e10e29357"}}}}