GitHub PullRequestReviewCommentEvent at 2014-08-24 22:22:54
Repository: cheeseandchalk
Actor: reshleman
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/waxnyc/cheeseandchalk/pulls/comments/16638363","id":16638363,"diff_hunk":"@@ -0,0 +1,40 @@\n+class CommentsController < ApplicationController\n+  def new\n+    @restaurant = find_restaurant\n+    @user = find_user\n+    @comment = Comment.new\n+  end\n+\n+  def create\n+    @restaurant = find_restaurant\n+    @comment = @restaurant.build_comment(comment_params)\n+\n+    if @comment.save\n+      redirect_to @restaurant.name \n+    else\n+      render :new\n+    end\n+  end\n+\n+  def show\n+    @comments = find_comment\n+  end\n+\n+  private\n+\n+  def comment_params\n+    params.require(:content).permit(:text)","path":"app/controllers/comments_controller.rb","position":26,"original_position":26,"commit_id":"4f5d1f0bc281ca70cd76bcce8ed27d4e46893d57","original_commit_id":"4f5d1f0bc281ca70cd76bcce8ed27d4e46893d57","user":{"login":"reshleman","id":7756801,"avatar_url":"https://avatars.githubusercontent.com/u/7756801?v=2","gravatar_id":"b8588f0798a1634c6df33f91da1fd928","url":"https://api.github.com/users/reshleman","html_url":"https://github.com/reshleman","followers_url":"https://api.github.com/users/reshleman/followers","following_url":"https://api.github.com/users/reshleman/following{/other_user}","gists_url":"https://api.github.com/users/reshleman/gists{/gist_id}","starred_url":"https://api.github.com/users/reshleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reshleman/subscriptions","organizations_url":"https://api.github.com/users/reshleman/orgs","repos_url":"https://api.github.com/users/reshleman/repos","events_url":"https://api.github.com/users/reshleman/events{/privacy}","received_events_url":"https://api.github.com/users/reshleman/received_events","type":"User","site_admin":false},"body":"`params.require(:comment).permit(:text)`?","created_at":"2014-08-24T22:22:54Z","updated_at":"2014-08-24T22:22:54Z","html_url":"https://github.com/waxnyc/cheeseandchalk/pull/4#discussion_r16638363","pull_request_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/waxnyc/cheeseandchalk/pulls/comments/16638363"},"html":{"href":"https://github.com/waxnyc/cheeseandchalk/pull/4#discussion_r16638363"},"pull_request":{"href":"https://api.github.com/repos/waxnyc/cheeseandchalk/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/waxnyc/cheeseandchalk/pulls/4","id":20215876,"html_url":"https://github.com/waxnyc/cheeseandchalk/pull/4","diff_url":"https://github.com/waxnyc/cheeseandchalk/pull/4.diff","patch_url":"https://github.com/waxnyc/cheeseandchalk/pull/4.patch","issue_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/issues/4","number":4,"state":"open","locked":false,"title":"work on adding comments to restaurant show page","user":{"login":"waxnyc","id":5303974,"avatar_url":"https://avatars.githubusercontent.com/u/5303974?v=2","gravatar_id":"5d765cdeeb81750062569b1c0ca905aa","url":"https://api.github.com/users/waxnyc","html_url":"https://github.com/waxnyc","followers_url":"https://api.github.com/users/waxnyc/followers","following_url":"https://api.github.com/users/waxnyc/following{/other_user}","gists_url":"https://api.github.com/users/waxnyc/gists{/gist_id}","starred_url":"https://api.github.com/users/waxnyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waxnyc/subscriptions","organizations_url":"https://api.github.com/users/waxnyc/orgs","repos_url":"https://api.github.com/users/waxnyc/repos","events_url":"https://api.github.com/users/waxnyc/events{/privacy}","received_events_url":"https://api.github.com/users/waxnyc/received_events","type":"User","site_admin":false},"body":"Created CommentsController\r\nchange restaurant controller (prob was a no no)\r\nDid some other things that simply did not work.  I'm tired. should rest and tackle this in the morning. \r\nAny good feedback would be welcome. ","created_at":"2014-08-24T02:05:58Z","updated_at":"2014-08-24T22:22:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89c52747899d9105596e6953c6610367fd1f6c80","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/pulls/4/commits","review_comments_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/pulls/4/comments","review_comment_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/pulls/comments/{number}","comments_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/issues/4/comments","statuses_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/statuses/4f5d1f0bc281ca70cd76bcce8ed27d4e46893d57","head":{"label":"waxnyc:user-show-pages","ref":"user-show-pages","sha":"4f5d1f0bc281ca70cd76bcce8ed27d4e46893d57","user":{"login":"waxnyc","id":5303974,"avatar_url":"https://avatars.githubusercontent.com/u/5303974?v=2","gravatar_id":"5d765cdeeb81750062569b1c0ca905aa","url":"https://api.github.com/users/waxnyc","html_url":"https://github.com/waxnyc","followers_url":"https://api.github.com/users/waxnyc/followers","following_url":"https://api.github.com/users/waxnyc/following{/other_user}","gists_url":"https://api.github.com/users/waxnyc/gists{/gist_id}","starred_url":"https://api.github.com/users/waxnyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waxnyc/subscriptions","organizations_url":"https://api.github.com/users/waxnyc/orgs","repos_url":"https://api.github.com/users/waxnyc/repos","events_url":"https://api.github.com/users/waxnyc/events{/privacy}","received_events_url":"https://api.github.com/users/waxnyc/received_events","type":"User","site_admin":false},"repo":{"id":23087274,"name":"cheeseandchalk","full_name":"waxnyc/cheeseandchalk","owner":{"login":"waxnyc","id":5303974,"avatar_url":"https://avatars.githubusercontent.com/u/5303974?v=2","gravatar_id":"5d765cdeeb81750062569b1c0ca905aa","url":"https://api.github.com/users/waxnyc","html_url":"https://github.com/waxnyc","followers_url":"https://api.github.com/users/waxnyc/followers","following_url":"https://api.github.com/users/waxnyc/following{/other_user}","gists_url":"https://api.github.com/users/waxnyc/gists{/gist_id}","starred_url":"https://api.github.com/users/waxnyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waxnyc/subscriptions","organizations_url":"https://api.github.com/users/waxnyc/orgs","repos_url":"https://api.github.com/users/waxnyc/repos","events_url":"https://api.github.com/users/waxnyc/events{/privacy}","received_events_url":"https://api.github.com/users/waxnyc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/waxnyc/cheeseandchalk","description":"","fork":false,"url":"https://api.github.com/repos/waxnyc/cheeseandchalk","forks_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/forks","keys_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/teams","hooks_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/hooks","issue_events_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/issues/events{/number}","events_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/events","assignees_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/assignees{/user}","branches_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/branches{/branch}","tags_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/tags","blobs_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/git/refs{/sha}","trees_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/statuses/{sha}","languages_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/languages","stargazers_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/stargazers","contributors_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/contributors","subscribers_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/subscribers","subscription_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/subscription","commits_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/commits{/sha}","git_commits_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/git/commits{/sha}","comments_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/comments{/number}","issue_comment_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/issues/comments/{number}","contents_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/contents/{+path}","compare_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/merges","archive_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/downloads","issues_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/issues{/number}","pulls_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/pulls{/number}","milestones_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/milestones{/number}","notifications_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/labels{/name}","releases_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/releases{/id}","created_at":"2014-08-18T21:33:51Z","updated_at":"2014-08-18T21:46:46Z","pushed_at":"2014-08-24T02:02:51Z","git_url":"git://github.com/waxnyc/cheeseandchalk.git","ssh_url":"git@github.com:waxnyc/cheeseandchalk.git","clone_url":"https://github.com/waxnyc/cheeseandchalk.git","svn_url":"https://github.com/waxnyc/cheeseandchalk","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"waxnyc:master","ref":"master","sha":"56b53e226b2073a7b85b85041ca917cca38232ff","user":{"login":"waxnyc","id":5303974,"avatar_url":"https://avatars.githubusercontent.com/u/5303974?v=2","gravatar_id":"5d765cdeeb81750062569b1c0ca905aa","url":"https://api.github.com/users/waxnyc","html_url":"https://github.com/waxnyc","followers_url":"https://api.github.com/users/waxnyc/followers","following_url":"https://api.github.com/users/waxnyc/following{/other_user}","gists_url":"https://api.github.com/users/waxnyc/gists{/gist_id}","starred_url":"https://api.github.com/users/waxnyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waxnyc/subscriptions","organizations_url":"https://api.github.com/users/waxnyc/orgs","repos_url":"https://api.github.com/users/waxnyc/repos","events_url":"https://api.github.com/users/waxnyc/events{/privacy}","received_events_url":"https://api.github.com/users/waxnyc/received_events","type":"User","site_admin":false},"repo":{"id":23087274,"name":"cheeseandchalk","full_name":"waxnyc/cheeseandchalk","owner":{"login":"waxnyc","id":5303974,"avatar_url":"https://avatars.githubusercontent.com/u/5303974?v=2","gravatar_id":"5d765cdeeb81750062569b1c0ca905aa","url":"https://api.github.com/users/waxnyc","html_url":"https://github.com/waxnyc","followers_url":"https://api.github.com/users/waxnyc/followers","following_url":"https://api.github.com/users/waxnyc/following{/other_user}","gists_url":"https://api.github.com/users/waxnyc/gists{/gist_id}","starred_url":"https://api.github.com/users/waxnyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waxnyc/subscriptions","organizations_url":"https://api.github.com/users/waxnyc/orgs","repos_url":"https://api.github.com/users/waxnyc/repos","events_url":"https://api.github.com/users/waxnyc/events{/privacy}","received_events_url":"https://api.github.com/users/waxnyc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/waxnyc/cheeseandchalk","description":"","fork":false,"url":"https://api.github.com/repos/waxnyc/cheeseandchalk","forks_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/forks","keys_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/teams","hooks_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/hooks","issue_events_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/issues/events{/number}","events_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/events","assignees_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/assignees{/user}","branches_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/branches{/branch}","tags_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/tags","blobs_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/git/refs{/sha}","trees_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/statuses/{sha}","languages_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/languages","stargazers_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/stargazers","contributors_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/contributors","subscribers_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/subscribers","subscription_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/subscription","commits_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/commits{/sha}","git_commits_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/git/commits{/sha}","comments_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/comments{/number}","issue_comment_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/issues/comments/{number}","contents_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/contents/{+path}","compare_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/merges","archive_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/downloads","issues_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/issues{/number}","pulls_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/pulls{/number}","milestones_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/milestones{/number}","notifications_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/labels{/name}","releases_url":"https://api.github.com/repos/waxnyc/cheeseandchalk/releases{/id}","created_at":"2014-08-18T21:33:51Z","updated_at":"2014-08-18T21:46:46Z","pushed_at":"2014-08-24T02:02:51Z","git_url":"git://github.com/waxnyc/cheeseandchalk.git","ssh_url":"git@github.com:waxnyc/cheeseandchalk.git","clone_url":"https://github.com/waxnyc/cheeseandchalk.git","svn_url":"https://github.com/waxnyc/cheeseandchalk","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"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/waxnyc/cheeseandchalk/pulls/4"},"html":{"href":"https://github.com/waxnyc/cheeseandchalk/pull/4"},"issue":{"href":"https://api.github.com/repos/waxnyc/cheeseandchalk/issues/4"},"comments":{"href":"https://api.github.com/repos/waxnyc/cheeseandchalk/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/waxnyc/cheeseandchalk/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/waxnyc/cheeseandchalk/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/waxnyc/cheeseandchalk/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/waxnyc/cheeseandchalk/statuses/4f5d1f0bc281ca70cd76bcce8ed27d4e46893d57"}}}}