{"action":"created","comment":{"url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/pulls/comments/30713728","id":30713728,"diff_hunk":"@@ -0,0 +1,60 @@\n+class PostsController < ApplicationController\n+  before_action :get_post, only: [:show, :destroy, :edit, :update]\n+  before_action :get_comments, only: [:show]\n+  def index\n+    @posts = Post.all\n+  end\n+\n+  def new\n+    @post = Post.new\n+  end\n+\n+  def show\n+  end","path":"app/controllers/posts_controller.rb","position":13,"original_position":13,"commit_id":"afa07f2bfce79f8ca9f5af70ed66d8f755af4a70","original_commit_id":"afa07f2bfce79f8ca9f5af70ed66d8f755af4a70","user":{"login":"stevecass","id":1823156,"avatar_url":"https://avatars.githubusercontent.com/u/1823156?v=3","gravatar_id":"","url":"https://api.github.com/users/stevecass","html_url":"https://github.com/stevecass","followers_url":"https://api.github.com/users/stevecass/followers","following_url":"https://api.github.com/users/stevecass/following{/other_user}","gists_url":"https://api.github.com/users/stevecass/gists{/gist_id}","starred_url":"https://api.github.com/users/stevecass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevecass/subscriptions","organizations_url":"https://api.github.com/users/stevecass/orgs","repos_url":"https://api.github.com/users/stevecass/repos","events_url":"https://api.github.com/users/stevecass/events{/privacy}","received_events_url":"https://api.github.com/users/stevecass/received_events","type":"User","site_admin":false},"body":"Just fyi, you can omit empty actions and they'll still execute if there's a view present. But leaving them in can be a nice visual cue to the reader that they exist - without having to go checking for views.","created_at":"2015-05-20T15:22:11Z","updated_at":"2015-05-20T15:22:11Z","html_url":"https://github.com/nyc-pocket-gophers-2015/hacker_news_rails/pull/1#discussion_r30713728","pull_request_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/pulls/comments/30713728"},"html":{"href":"https://github.com/nyc-pocket-gophers-2015/hacker_news_rails/pull/1#discussion_r30713728"},"pull_request":{"href":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/pulls/1","id":35770438,"html_url":"https://github.com/nyc-pocket-gophers-2015/hacker_news_rails/pull/1","diff_url":"https://github.com/nyc-pocket-gophers-2015/hacker_news_rails/pull/1.diff","patch_url":"https://github.com/nyc-pocket-gophers-2015/hacker_news_rails/pull/1.patch","issue_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/issues/1","number":1,"state":"open","locked":false,"title":"Pair aceburgess,aperezmontan","user":{"login":"aceburgess","id":10459653,"avatar_url":"https://avatars.githubusercontent.com/u/10459653?v=3","gravatar_id":"","url":"https://api.github.com/users/aceburgess","html_url":"https://github.com/aceburgess","followers_url":"https://api.github.com/users/aceburgess/followers","following_url":"https://api.github.com/users/aceburgess/following{/other_user}","gists_url":"https://api.github.com/users/aceburgess/gists{/gist_id}","starred_url":"https://api.github.com/users/aceburgess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aceburgess/subscriptions","organizations_url":"https://api.github.com/users/aceburgess/orgs","repos_url":"https://api.github.com/users/aceburgess/repos","events_url":"https://api.github.com/users/aceburgess/events{/privacy}","received_events_url":"https://api.github.com/users/aceburgess/received_events","type":"User","site_admin":false},"body":"@audibleblink @stevecass @aperezmontan \r\n\r\nFinished MVP. We're able to do most CRUD operations on our Posts and Comments with Sessions etc. Any input with setting up specific routes like DELETE when making links etc instead of using forms to delete posts.","created_at":"2015-05-19T20:20:33Z","updated_at":"2015-05-20T15:22:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81a5009d8ff2cf64def3a44e1377ca4ad6df280f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/pulls/1/commits","review_comments_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/pulls/1/comments","review_comment_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/issues/1/comments","statuses_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/statuses/afa07f2bfce79f8ca9f5af70ed66d8f755af4a70","head":{"label":"nyc-pocket-gophers-2015:pair-aceburgess,aperezmontan","ref":"pair-aceburgess,aperezmontan","sha":"afa07f2bfce79f8ca9f5af70ed66d8f755af4a70","user":{"login":"nyc-pocket-gophers-2015","id":10661474,"avatar_url":"https://avatars.githubusercontent.com/u/10661474?v=3","gravatar_id":"","url":"https://api.github.com/users/nyc-pocket-gophers-2015","html_url":"https://github.com/nyc-pocket-gophers-2015","followers_url":"https://api.github.com/users/nyc-pocket-gophers-2015/followers","following_url":"https://api.github.com/users/nyc-pocket-gophers-2015/following{/other_user}","gists_url":"https://api.github.com/users/nyc-pocket-gophers-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/nyc-pocket-gophers-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyc-pocket-gophers-2015/subscriptions","organizations_url":"https://api.github.com/users/nyc-pocket-gophers-2015/orgs","repos_url":"https://api.github.com/users/nyc-pocket-gophers-2015/repos","events_url":"https://api.github.com/users/nyc-pocket-gophers-2015/events{/privacy}","received_events_url":"https://api.github.com/users/nyc-pocket-gophers-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":35886859,"name":"hacker_news_rails","full_name":"nyc-pocket-gophers-2015/hacker_news_rails","owner":{"login":"nyc-pocket-gophers-2015","id":10661474,"avatar_url":"https://avatars.githubusercontent.com/u/10661474?v=3","gravatar_id":"","url":"https://api.github.com/users/nyc-pocket-gophers-2015","html_url":"https://github.com/nyc-pocket-gophers-2015","followers_url":"https://api.github.com/users/nyc-pocket-gophers-2015/followers","following_url":"https://api.github.com/users/nyc-pocket-gophers-2015/following{/other_user}","gists_url":"https://api.github.com/users/nyc-pocket-gophers-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/nyc-pocket-gophers-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyc-pocket-gophers-2015/subscriptions","organizations_url":"https://api.github.com/users/nyc-pocket-gophers-2015/orgs","repos_url":"https://api.github.com/users/nyc-pocket-gophers-2015/repos","events_url":"https://api.github.com/users/nyc-pocket-gophers-2015/events{/privacy}","received_events_url":"https://api.github.com/users/nyc-pocket-gophers-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nyc-pocket-gophers-2015/hacker_news_rails","description":"Hacker News Rails","fork":false,"url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails","forks_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/forks","keys_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/teams","hooks_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/hooks","issue_events_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/issues/events{/number}","events_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/events","assignees_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/assignees{/user}","branches_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/branches{/branch}","tags_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/tags","blobs_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/statuses/{sha}","languages_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/languages","stargazers_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/stargazers","contributors_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/contributors","subscribers_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/subscribers","subscription_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/subscription","commits_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/contents/{+path}","compare_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/merges","archive_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/downloads","issues_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/issues{/number}","pulls_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/pulls{/number}","milestones_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/milestones{/number}","notifications_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/labels{/name}","releases_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/releases{/id}","created_at":"2015-05-19T14:20:34Z","updated_at":"2015-05-19T14:21:05Z","pushed_at":"2015-05-19T20:29:16Z","git_url":"git://github.com/nyc-pocket-gophers-2015/hacker_news_rails.git","ssh_url":"git@github.com:nyc-pocket-gophers-2015/hacker_news_rails.git","clone_url":"https://github.com/nyc-pocket-gophers-2015/hacker_news_rails.git","svn_url":"https://github.com/nyc-pocket-gophers-2015/hacker_news_rails","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"nyc-pocket-gophers-2015:master","ref":"master","sha":"52f19856b98658001d16e8b76800dc881d0a5e2a","user":{"login":"nyc-pocket-gophers-2015","id":10661474,"avatar_url":"https://avatars.githubusercontent.com/u/10661474?v=3","gravatar_id":"","url":"https://api.github.com/users/nyc-pocket-gophers-2015","html_url":"https://github.com/nyc-pocket-gophers-2015","followers_url":"https://api.github.com/users/nyc-pocket-gophers-2015/followers","following_url":"https://api.github.com/users/nyc-pocket-gophers-2015/following{/other_user}","gists_url":"https://api.github.com/users/nyc-pocket-gophers-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/nyc-pocket-gophers-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyc-pocket-gophers-2015/subscriptions","organizations_url":"https://api.github.com/users/nyc-pocket-gophers-2015/orgs","repos_url":"https://api.github.com/users/nyc-pocket-gophers-2015/repos","events_url":"https://api.github.com/users/nyc-pocket-gophers-2015/events{/privacy}","received_events_url":"https://api.github.com/users/nyc-pocket-gophers-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":35886859,"name":"hacker_news_rails","full_name":"nyc-pocket-gophers-2015/hacker_news_rails","owner":{"login":"nyc-pocket-gophers-2015","id":10661474,"avatar_url":"https://avatars.githubusercontent.com/u/10661474?v=3","gravatar_id":"","url":"https://api.github.com/users/nyc-pocket-gophers-2015","html_url":"https://github.com/nyc-pocket-gophers-2015","followers_url":"https://api.github.com/users/nyc-pocket-gophers-2015/followers","following_url":"https://api.github.com/users/nyc-pocket-gophers-2015/following{/other_user}","gists_url":"https://api.github.com/users/nyc-pocket-gophers-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/nyc-pocket-gophers-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyc-pocket-gophers-2015/subscriptions","organizations_url":"https://api.github.com/users/nyc-pocket-gophers-2015/orgs","repos_url":"https://api.github.com/users/nyc-pocket-gophers-2015/repos","events_url":"https://api.github.com/users/nyc-pocket-gophers-2015/events{/privacy}","received_events_url":"https://api.github.com/users/nyc-pocket-gophers-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nyc-pocket-gophers-2015/hacker_news_rails","description":"Hacker News Rails","fork":false,"url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails","forks_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/forks","keys_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/teams","hooks_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/hooks","issue_events_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/issues/events{/number}","events_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/events","assignees_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/assignees{/user}","branches_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/branches{/branch}","tags_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/tags","blobs_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/statuses/{sha}","languages_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/languages","stargazers_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/stargazers","contributors_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/contributors","subscribers_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/subscribers","subscription_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/subscription","commits_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/contents/{+path}","compare_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/merges","archive_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/downloads","issues_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/issues{/number}","pulls_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/pulls{/number}","milestones_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/milestones{/number}","notifications_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/labels{/name}","releases_url":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/releases{/id}","created_at":"2015-05-19T14:20:34Z","updated_at":"2015-05-19T14:21:05Z","pushed_at":"2015-05-19T20:29:16Z","git_url":"git://github.com/nyc-pocket-gophers-2015/hacker_news_rails.git","ssh_url":"git@github.com:nyc-pocket-gophers-2015/hacker_news_rails.git","clone_url":"https://github.com/nyc-pocket-gophers-2015/hacker_news_rails.git","svn_url":"https://github.com/nyc-pocket-gophers-2015/hacker_news_rails","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/pulls/1"},"html":{"href":"https://github.com/nyc-pocket-gophers-2015/hacker_news_rails/pull/1"},"issue":{"href":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/issues/1"},"comments":{"href":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/nyc-pocket-gophers-2015/hacker_news_rails/statuses/afa07f2bfce79f8ca9f5af70ed66d8f755af4a70"}}}}