{"action":"created","comment":{"url":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/comments/26446657","id":26446657,"diff_hunk":"@@ -0,0 +1,56 @@\n+class AdvertisementsController < ApplicationController\n+  before_action :set_advertisement, only: [:show, :edit, :update, :destroy]\n+\n+  def index\n+    @advertisements = Advertisement.all\n+  end\n+\n+  def show\n+  end\n+\n+  def new\n+    @advertisement = Advertisement.new\n+  end\n+\n+  def edit\n+  end\n+\n+  def create\n+    @advertisement = Advertisement.new(advertisement_params)\n+    @advertisement.user = current_user\n+\n+    if @advertisement.save\n+      redirect_to advertisement_path(@advertisement, management: true),\n+        notice: 'Advertisement was successfully created.'\n+    else\n+      render :new\n+    end\n+  end\n+\n+  def update\n+    if @advertisement.update(advertisement_params)\n+      redirect_to advertisement_path(management: true),\n+        management: true,\n+        notice: 'Advertisement was successfully updated.'","path":"app/controllers/advertisements_controller.rb","position":34,"original_position":34,"commit_id":"3b48d35fd59ec9a3d96c8c1c372342b93e9e16ed","original_commit_id":"3b48d35fd59ec9a3d96c8c1c372342b93e9e16ed","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-03-15T10:58:05Z","updated_at":"2015-03-15T10:58:05Z","html_url":"https://github.com/ken1flan/everyones_notice/pull/176#discussion_r26446657","pull_request_url":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/176","_links":{"self":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/comments/26446657"},"html":{"href":"https://github.com/ken1flan/everyones_notice/pull/176#discussion_r26446657"},"pull_request":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/176"}}},"pull_request":{"url":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/176","id":31090261,"html_url":"https://github.com/ken1flan/everyones_notice/pull/176","diff_url":"https://github.com/ken1flan/everyones_notice/pull/176.diff","patch_url":"https://github.com/ken1flan/everyones_notice/pull/176.patch","issue_url":"https://api.github.com/repos/ken1flan/everyones_notice/issues/176","number":176,"state":"open","locked":false,"title":"refs #172 お知らせ","user":{"login":"ken1flan","id":2942348,"avatar_url":"https://avatars.githubusercontent.com/u/2942348?v=3","gravatar_id":"","url":"https://api.github.com/users/ken1flan","html_url":"https://github.com/ken1flan","followers_url":"https://api.github.com/users/ken1flan/followers","following_url":"https://api.github.com/users/ken1flan/following{/other_user}","gists_url":"https://api.github.com/users/ken1flan/gists{/gist_id}","starred_url":"https://api.github.com/users/ken1flan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ken1flan/subscriptions","organizations_url":"https://api.github.com/users/ken1flan/orgs","repos_url":"https://api.github.com/users/ken1flan/repos","events_url":"https://api.github.com/users/ken1flan/events{/privacy}","received_events_url":"https://api.github.com/users/ken1flan/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-13T00:10:54Z","updated_at":"2015-03-15T10:58:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a15b28b19948ce5df32f9499099921f61ff7c6ee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/176/commits","review_comments_url":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/176/comments","review_comment_url":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ken1flan/everyones_notice/issues/176/comments","statuses_url":"https://api.github.com/repos/ken1flan/everyones_notice/statuses/3b48d35fd59ec9a3d96c8c1c372342b93e9e16ed","head":{"label":"ken1flan:172_infomations","ref":"172_infomations","sha":"3b48d35fd59ec9a3d96c8c1c372342b93e9e16ed","user":{"login":"ken1flan","id":2942348,"avatar_url":"https://avatars.githubusercontent.com/u/2942348?v=3","gravatar_id":"","url":"https://api.github.com/users/ken1flan","html_url":"https://github.com/ken1flan","followers_url":"https://api.github.com/users/ken1flan/followers","following_url":"https://api.github.com/users/ken1flan/following{/other_user}","gists_url":"https://api.github.com/users/ken1flan/gists{/gist_id}","starred_url":"https://api.github.com/users/ken1flan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ken1flan/subscriptions","organizations_url":"https://api.github.com/users/ken1flan/orgs","repos_url":"https://api.github.com/users/ken1flan/repos","events_url":"https://api.github.com/users/ken1flan/events{/privacy}","received_events_url":"https://api.github.com/users/ken1flan/received_events","type":"User","site_admin":false},"repo":{"id":25445366,"name":"everyones_notice","full_name":"ken1flan/everyones_notice","owner":{"login":"ken1flan","id":2942348,"avatar_url":"https://avatars.githubusercontent.com/u/2942348?v=3","gravatar_id":"","url":"https://api.github.com/users/ken1flan","html_url":"https://github.com/ken1flan","followers_url":"https://api.github.com/users/ken1flan/followers","following_url":"https://api.github.com/users/ken1flan/following{/other_user}","gists_url":"https://api.github.com/users/ken1flan/gists{/gist_id}","starred_url":"https://api.github.com/users/ken1flan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ken1flan/subscriptions","organizations_url":"https://api.github.com/users/ken1flan/orgs","repos_url":"https://api.github.com/users/ken1flan/repos","events_url":"https://api.github.com/users/ken1flan/events{/privacy}","received_events_url":"https://api.github.com/users/ken1flan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ken1flan/everyones_notice","description":"Write your notices, read your friend's notices, enjoy everyone's notices.","fork":false,"url":"https://api.github.com/repos/ken1flan/everyones_notice","forks_url":"https://api.github.com/repos/ken1flan/everyones_notice/forks","keys_url":"https://api.github.com/repos/ken1flan/everyones_notice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ken1flan/everyones_notice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ken1flan/everyones_notice/teams","hooks_url":"https://api.github.com/repos/ken1flan/everyones_notice/hooks","issue_events_url":"https://api.github.com/repos/ken1flan/everyones_notice/issues/events{/number}","events_url":"https://api.github.com/repos/ken1flan/everyones_notice/events","assignees_url":"https://api.github.com/repos/ken1flan/everyones_notice/assignees{/user}","branches_url":"https://api.github.com/repos/ken1flan/everyones_notice/branches{/branch}","tags_url":"https://api.github.com/repos/ken1flan/everyones_notice/tags","blobs_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/refs{/sha}","trees_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ken1flan/everyones_notice/statuses/{sha}","languages_url":"https://api.github.com/repos/ken1flan/everyones_notice/languages","stargazers_url":"https://api.github.com/repos/ken1flan/everyones_notice/stargazers","contributors_url":"https://api.github.com/repos/ken1flan/everyones_notice/contributors","subscribers_url":"https://api.github.com/repos/ken1flan/everyones_notice/subscribers","subscription_url":"https://api.github.com/repos/ken1flan/everyones_notice/subscription","commits_url":"https://api.github.com/repos/ken1flan/everyones_notice/commits{/sha}","git_commits_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/commits{/sha}","comments_url":"https://api.github.com/repos/ken1flan/everyones_notice/comments{/number}","issue_comment_url":"https://api.github.com/repos/ken1flan/everyones_notice/issues/comments{/number}","contents_url":"https://api.github.com/repos/ken1flan/everyones_notice/contents/{+path}","compare_url":"https://api.github.com/repos/ken1flan/everyones_notice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ken1flan/everyones_notice/merges","archive_url":"https://api.github.com/repos/ken1flan/everyones_notice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ken1flan/everyones_notice/downloads","issues_url":"https://api.github.com/repos/ken1flan/everyones_notice/issues{/number}","pulls_url":"https://api.github.com/repos/ken1flan/everyones_notice/pulls{/number}","milestones_url":"https://api.github.com/repos/ken1flan/everyones_notice/milestones{/number}","notifications_url":"https://api.github.com/repos/ken1flan/everyones_notice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ken1flan/everyones_notice/labels{/name}","releases_url":"https://api.github.com/repos/ken1flan/everyones_notice/releases{/id}","created_at":"2014-10-20T01:08:04Z","updated_at":"2015-03-12T16:25:39Z","pushed_at":"2015-03-15T10:57:58Z","git_url":"git://github.com/ken1flan/everyones_notice.git","ssh_url":"git@github.com:ken1flan/everyones_notice.git","clone_url":"https://github.com/ken1flan/everyones_notice.git","svn_url":"https://github.com/ken1flan/everyones_notice","homepage":"","size":7063,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":17,"forks":2,"open_issues":17,"watchers":2,"default_branch":"develop"}},"base":{"label":"ken1flan:develop","ref":"develop","sha":"6a8120b8874c7c9dab694606b184b8f3be05cbe0","user":{"login":"ken1flan","id":2942348,"avatar_url":"https://avatars.githubusercontent.com/u/2942348?v=3","gravatar_id":"","url":"https://api.github.com/users/ken1flan","html_url":"https://github.com/ken1flan","followers_url":"https://api.github.com/users/ken1flan/followers","following_url":"https://api.github.com/users/ken1flan/following{/other_user}","gists_url":"https://api.github.com/users/ken1flan/gists{/gist_id}","starred_url":"https://api.github.com/users/ken1flan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ken1flan/subscriptions","organizations_url":"https://api.github.com/users/ken1flan/orgs","repos_url":"https://api.github.com/users/ken1flan/repos","events_url":"https://api.github.com/users/ken1flan/events{/privacy}","received_events_url":"https://api.github.com/users/ken1flan/received_events","type":"User","site_admin":false},"repo":{"id":25445366,"name":"everyones_notice","full_name":"ken1flan/everyones_notice","owner":{"login":"ken1flan","id":2942348,"avatar_url":"https://avatars.githubusercontent.com/u/2942348?v=3","gravatar_id":"","url":"https://api.github.com/users/ken1flan","html_url":"https://github.com/ken1flan","followers_url":"https://api.github.com/users/ken1flan/followers","following_url":"https://api.github.com/users/ken1flan/following{/other_user}","gists_url":"https://api.github.com/users/ken1flan/gists{/gist_id}","starred_url":"https://api.github.com/users/ken1flan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ken1flan/subscriptions","organizations_url":"https://api.github.com/users/ken1flan/orgs","repos_url":"https://api.github.com/users/ken1flan/repos","events_url":"https://api.github.com/users/ken1flan/events{/privacy}","received_events_url":"https://api.github.com/users/ken1flan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ken1flan/everyones_notice","description":"Write your notices, read your friend's notices, enjoy everyone's notices.","fork":false,"url":"https://api.github.com/repos/ken1flan/everyones_notice","forks_url":"https://api.github.com/repos/ken1flan/everyones_notice/forks","keys_url":"https://api.github.com/repos/ken1flan/everyones_notice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ken1flan/everyones_notice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ken1flan/everyones_notice/teams","hooks_url":"https://api.github.com/repos/ken1flan/everyones_notice/hooks","issue_events_url":"https://api.github.com/repos/ken1flan/everyones_notice/issues/events{/number}","events_url":"https://api.github.com/repos/ken1flan/everyones_notice/events","assignees_url":"https://api.github.com/repos/ken1flan/everyones_notice/assignees{/user}","branches_url":"https://api.github.com/repos/ken1flan/everyones_notice/branches{/branch}","tags_url":"https://api.github.com/repos/ken1flan/everyones_notice/tags","blobs_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/refs{/sha}","trees_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ken1flan/everyones_notice/statuses/{sha}","languages_url":"https://api.github.com/repos/ken1flan/everyones_notice/languages","stargazers_url":"https://api.github.com/repos/ken1flan/everyones_notice/stargazers","contributors_url":"https://api.github.com/repos/ken1flan/everyones_notice/contributors","subscribers_url":"https://api.github.com/repos/ken1flan/everyones_notice/subscribers","subscription_url":"https://api.github.com/repos/ken1flan/everyones_notice/subscription","commits_url":"https://api.github.com/repos/ken1flan/everyones_notice/commits{/sha}","git_commits_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/commits{/sha}","comments_url":"https://api.github.com/repos/ken1flan/everyones_notice/comments{/number}","issue_comment_url":"https://api.github.com/repos/ken1flan/everyones_notice/issues/comments{/number}","contents_url":"https://api.github.com/repos/ken1flan/everyones_notice/contents/{+path}","compare_url":"https://api.github.com/repos/ken1flan/everyones_notice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ken1flan/everyones_notice/merges","archive_url":"https://api.github.com/repos/ken1flan/everyones_notice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ken1flan/everyones_notice/downloads","issues_url":"https://api.github.com/repos/ken1flan/everyones_notice/issues{/number}","pulls_url":"https://api.github.com/repos/ken1flan/everyones_notice/pulls{/number}","milestones_url":"https://api.github.com/repos/ken1flan/everyones_notice/milestones{/number}","notifications_url":"https://api.github.com/repos/ken1flan/everyones_notice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ken1flan/everyones_notice/labels{/name}","releases_url":"https://api.github.com/repos/ken1flan/everyones_notice/releases{/id}","created_at":"2014-10-20T01:08:04Z","updated_at":"2015-03-12T16:25:39Z","pushed_at":"2015-03-15T10:57:58Z","git_url":"git://github.com/ken1flan/everyones_notice.git","ssh_url":"git@github.com:ken1flan/everyones_notice.git","clone_url":"https://github.com/ken1flan/everyones_notice.git","svn_url":"https://github.com/ken1flan/everyones_notice","homepage":"","size":7063,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":17,"forks":2,"open_issues":17,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/176"},"html":{"href":"https://github.com/ken1flan/everyones_notice/pull/176"},"issue":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/issues/176"},"comments":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/issues/176/comments"},"review_comments":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/176/comments"},"review_comment":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/176/commits"},"statuses":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/statuses/3b48d35fd59ec9a3d96c8c1c372342b93e9e16ed"}}}}