{"action":"created","comment":{"url":"https://api.github.com/repos/drutyper/Bloccit/pulls/comments/23756659","id":23756659,"diff_hunk":"@@ -1,11 +1,13 @@\n Rails.application.routes.draw do\n \n+\n   devise_for :users\n   resources :users, only: [:update]\n    \n-   resources :topics do\n-     resources :posts, except: [:index]\n-   end\n+   resources :topics, :posts, :comments do\n+   resources :posts, except: [:index]\n+   resources :comments, only: [:create]","path":"config/routes.rb","position":12,"original_position":12,"commit_id":"bf9421f10f80e0634b09d6773559c37a0c9d769c","original_commit_id":"bf9421f10f80e0634b09d6773559c37a0c9d769c","user":{"login":"Dagnan","id":99890,"avatar_url":"https://avatars.githubusercontent.com/u/99890?v=3","gravatar_id":"","url":"https://api.github.com/users/Dagnan","html_url":"https://github.com/Dagnan","followers_url":"https://api.github.com/users/Dagnan/followers","following_url":"https://api.github.com/users/Dagnan/following{/other_user}","gists_url":"https://api.github.com/users/Dagnan/gists{/gist_id}","starred_url":"https://api.github.com/users/Dagnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dagnan/subscriptions","organizations_url":"https://api.github.com/users/Dagnan/orgs","repos_url":"https://api.github.com/users/Dagnan/repos","events_url":"https://api.github.com/users/Dagnan/events{/privacy}","received_events_url":"https://api.github.com/users/Dagnan/received_events","type":"User","site_admin":false},"body":"Please read again http://guides.rubyonrails.org/routing.html. You really must read it.","created_at":"2015-01-29T09:52:51Z","updated_at":"2015-01-29T09:52:51Z","html_url":"https://github.com/drutyper/Bloccit/pull/1#discussion_r23756659","pull_request_url":"https://api.github.com/repos/drutyper/Bloccit/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/drutyper/Bloccit/pulls/comments/23756659"},"html":{"href":"https://github.com/drutyper/Bloccit/pull/1#discussion_r23756659"},"pull_request":{"href":"https://api.github.com/repos/drutyper/Bloccit/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/drutyper/Bloccit/pulls/1","id":28137515,"html_url":"https://github.com/drutyper/Bloccit/pull/1","diff_url":"https://github.com/drutyper/Bloccit/pull/1.diff","patch_url":"https://github.com/drutyper/Bloccit/pull/1.patch","issue_url":"https://api.github.com/repos/drutyper/Bloccit/issues/1","number":1,"state":"closed","locked":false,"title":"Comments","user":{"login":"drutyper","id":9041338,"avatar_url":"https://avatars.githubusercontent.com/u/9041338?v=3","gravatar_id":"","url":"https://api.github.com/users/drutyper","html_url":"https://github.com/drutyper","followers_url":"https://api.github.com/users/drutyper/followers","following_url":"https://api.github.com/users/drutyper/following{/other_user}","gists_url":"https://api.github.com/users/drutyper/gists{/gist_id}","starred_url":"https://api.github.com/users/drutyper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drutyper/subscriptions","organizations_url":"https://api.github.com/users/drutyper/orgs","repos_url":"https://api.github.com/users/drutyper/repos","events_url":"https://api.github.com/users/drutyper/events{/privacy}","received_events_url":"https://api.github.com/users/drutyper/received_events","type":"User","site_admin":false},"body":"Ive coded in the the render method to show the comments in the post/show\r\n\r\nI also changed the comments/_form a bit  so that it can work properly. \r\n\r\nBut I am running into an error whenever I click on comments\r\n\r\n```NoMethodError in Posts#show\r\nShowing /Users/Dru/code/Bloccit/app/views/comments/_form.html.erb where line #2 raised:\r\n\r\nundefined method `topic_post_comments_path' for #<#<Class:0x007f8b008cbc60>:0x007f8b031afd20>\r\nExtracted source (around line #2):\r\n1\r\n2\r\n3\r\n4\r\n5\r\n          \r\n  <% if current_user %>\r\n  <%= form_for [topic, post, comment], remote: true do |f| %>\r\n    <% if comment.errors.any? %>\r\n      <div class=\"alert alert-block\">\r\n        <h4>There are <%= pluralize(comment.errors.count, \"error\") %> errors.</h4>\r\n\r\nTrace of template inclusion: app/views/posts/show.html.erb\r\n```","created_at":"2015-01-27T19:34:37Z","updated_at":"2015-01-29T09:52:51Z","closed_at":"2015-01-28T21:38:22Z","merged_at":"2015-01-28T21:38:22Z","merge_commit_sha":"130cab0c28d02ee4ec102ddb1dce907c1d44af6b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/drutyper/Bloccit/pulls/1/commits","review_comments_url":"https://api.github.com/repos/drutyper/Bloccit/pulls/1/comments","review_comment_url":"https://api.github.com/repos/drutyper/Bloccit/pulls/comments/{number}","comments_url":"https://api.github.com/repos/drutyper/Bloccit/issues/1/comments","statuses_url":"https://api.github.com/repos/drutyper/Bloccit/statuses/bf9421f10f80e0634b09d6773559c37a0c9d769c","head":{"label":"drutyper:comments","ref":"comments","sha":"bf9421f10f80e0634b09d6773559c37a0c9d769c","user":{"login":"drutyper","id":9041338,"avatar_url":"https://avatars.githubusercontent.com/u/9041338?v=3","gravatar_id":"","url":"https://api.github.com/users/drutyper","html_url":"https://github.com/drutyper","followers_url":"https://api.github.com/users/drutyper/followers","following_url":"https://api.github.com/users/drutyper/following{/other_user}","gists_url":"https://api.github.com/users/drutyper/gists{/gist_id}","starred_url":"https://api.github.com/users/drutyper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drutyper/subscriptions","organizations_url":"https://api.github.com/users/drutyper/orgs","repos_url":"https://api.github.com/users/drutyper/repos","events_url":"https://api.github.com/users/drutyper/events{/privacy}","received_events_url":"https://api.github.com/users/drutyper/received_events","type":"User","site_admin":false},"repo":{"id":26095553,"name":"Bloccit","full_name":"drutyper/Bloccit","owner":{"login":"drutyper","id":9041338,"avatar_url":"https://avatars.githubusercontent.com/u/9041338?v=3","gravatar_id":"","url":"https://api.github.com/users/drutyper","html_url":"https://github.com/drutyper","followers_url":"https://api.github.com/users/drutyper/followers","following_url":"https://api.github.com/users/drutyper/following{/other_user}","gists_url":"https://api.github.com/users/drutyper/gists{/gist_id}","starred_url":"https://api.github.com/users/drutyper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drutyper/subscriptions","organizations_url":"https://api.github.com/users/drutyper/orgs","repos_url":"https://api.github.com/users/drutyper/repos","events_url":"https://api.github.com/users/drutyper/events{/privacy}","received_events_url":"https://api.github.com/users/drutyper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/drutyper/Bloccit","description":"My Reddit Clone","fork":false,"url":"https://api.github.com/repos/drutyper/Bloccit","forks_url":"https://api.github.com/repos/drutyper/Bloccit/forks","keys_url":"https://api.github.com/repos/drutyper/Bloccit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drutyper/Bloccit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drutyper/Bloccit/teams","hooks_url":"https://api.github.com/repos/drutyper/Bloccit/hooks","issue_events_url":"https://api.github.com/repos/drutyper/Bloccit/issues/events{/number}","events_url":"https://api.github.com/repos/drutyper/Bloccit/events","assignees_url":"https://api.github.com/repos/drutyper/Bloccit/assignees{/user}","branches_url":"https://api.github.com/repos/drutyper/Bloccit/branches{/branch}","tags_url":"https://api.github.com/repos/drutyper/Bloccit/tags","blobs_url":"https://api.github.com/repos/drutyper/Bloccit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drutyper/Bloccit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drutyper/Bloccit/git/refs{/sha}","trees_url":"https://api.github.com/repos/drutyper/Bloccit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drutyper/Bloccit/statuses/{sha}","languages_url":"https://api.github.com/repos/drutyper/Bloccit/languages","stargazers_url":"https://api.github.com/repos/drutyper/Bloccit/stargazers","contributors_url":"https://api.github.com/repos/drutyper/Bloccit/contributors","subscribers_url":"https://api.github.com/repos/drutyper/Bloccit/subscribers","subscription_url":"https://api.github.com/repos/drutyper/Bloccit/subscription","commits_url":"https://api.github.com/repos/drutyper/Bloccit/commits{/sha}","git_commits_url":"https://api.github.com/repos/drutyper/Bloccit/git/commits{/sha}","comments_url":"https://api.github.com/repos/drutyper/Bloccit/comments{/number}","issue_comment_url":"https://api.github.com/repos/drutyper/Bloccit/issues/comments/{number}","contents_url":"https://api.github.com/repos/drutyper/Bloccit/contents/{+path}","compare_url":"https://api.github.com/repos/drutyper/Bloccit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drutyper/Bloccit/merges","archive_url":"https://api.github.com/repos/drutyper/Bloccit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drutyper/Bloccit/downloads","issues_url":"https://api.github.com/repos/drutyper/Bloccit/issues{/number}","pulls_url":"https://api.github.com/repos/drutyper/Bloccit/pulls{/number}","milestones_url":"https://api.github.com/repos/drutyper/Bloccit/milestones{/number}","notifications_url":"https://api.github.com/repos/drutyper/Bloccit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drutyper/Bloccit/labels{/name}","releases_url":"https://api.github.com/repos/drutyper/Bloccit/releases{/id}","created_at":"2014-11-02T22:44:20Z","updated_at":"2015-01-28T21:38:23Z","pushed_at":"2015-01-28T21:44:42Z","git_url":"git://github.com/drutyper/Bloccit.git","ssh_url":"git@github.com:drutyper/Bloccit.git","clone_url":"https://github.com/drutyper/Bloccit.git","svn_url":"https://github.com/drutyper/Bloccit","homepage":null,"size":332,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"drutyper:master","ref":"master","sha":"ed66421106b3bac5cda2f2ac7c56aae430060768","user":{"login":"drutyper","id":9041338,"avatar_url":"https://avatars.githubusercontent.com/u/9041338?v=3","gravatar_id":"","url":"https://api.github.com/users/drutyper","html_url":"https://github.com/drutyper","followers_url":"https://api.github.com/users/drutyper/followers","following_url":"https://api.github.com/users/drutyper/following{/other_user}","gists_url":"https://api.github.com/users/drutyper/gists{/gist_id}","starred_url":"https://api.github.com/users/drutyper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drutyper/subscriptions","organizations_url":"https://api.github.com/users/drutyper/orgs","repos_url":"https://api.github.com/users/drutyper/repos","events_url":"https://api.github.com/users/drutyper/events{/privacy}","received_events_url":"https://api.github.com/users/drutyper/received_events","type":"User","site_admin":false},"repo":{"id":26095553,"name":"Bloccit","full_name":"drutyper/Bloccit","owner":{"login":"drutyper","id":9041338,"avatar_url":"https://avatars.githubusercontent.com/u/9041338?v=3","gravatar_id":"","url":"https://api.github.com/users/drutyper","html_url":"https://github.com/drutyper","followers_url":"https://api.github.com/users/drutyper/followers","following_url":"https://api.github.com/users/drutyper/following{/other_user}","gists_url":"https://api.github.com/users/drutyper/gists{/gist_id}","starred_url":"https://api.github.com/users/drutyper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drutyper/subscriptions","organizations_url":"https://api.github.com/users/drutyper/orgs","repos_url":"https://api.github.com/users/drutyper/repos","events_url":"https://api.github.com/users/drutyper/events{/privacy}","received_events_url":"https://api.github.com/users/drutyper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/drutyper/Bloccit","description":"My Reddit Clone","fork":false,"url":"https://api.github.com/repos/drutyper/Bloccit","forks_url":"https://api.github.com/repos/drutyper/Bloccit/forks","keys_url":"https://api.github.com/repos/drutyper/Bloccit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drutyper/Bloccit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drutyper/Bloccit/teams","hooks_url":"https://api.github.com/repos/drutyper/Bloccit/hooks","issue_events_url":"https://api.github.com/repos/drutyper/Bloccit/issues/events{/number}","events_url":"https://api.github.com/repos/drutyper/Bloccit/events","assignees_url":"https://api.github.com/repos/drutyper/Bloccit/assignees{/user}","branches_url":"https://api.github.com/repos/drutyper/Bloccit/branches{/branch}","tags_url":"https://api.github.com/repos/drutyper/Bloccit/tags","blobs_url":"https://api.github.com/repos/drutyper/Bloccit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drutyper/Bloccit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drutyper/Bloccit/git/refs{/sha}","trees_url":"https://api.github.com/repos/drutyper/Bloccit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drutyper/Bloccit/statuses/{sha}","languages_url":"https://api.github.com/repos/drutyper/Bloccit/languages","stargazers_url":"https://api.github.com/repos/drutyper/Bloccit/stargazers","contributors_url":"https://api.github.com/repos/drutyper/Bloccit/contributors","subscribers_url":"https://api.github.com/repos/drutyper/Bloccit/subscribers","subscription_url":"https://api.github.com/repos/drutyper/Bloccit/subscription","commits_url":"https://api.github.com/repos/drutyper/Bloccit/commits{/sha}","git_commits_url":"https://api.github.com/repos/drutyper/Bloccit/git/commits{/sha}","comments_url":"https://api.github.com/repos/drutyper/Bloccit/comments{/number}","issue_comment_url":"https://api.github.com/repos/drutyper/Bloccit/issues/comments/{number}","contents_url":"https://api.github.com/repos/drutyper/Bloccit/contents/{+path}","compare_url":"https://api.github.com/repos/drutyper/Bloccit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drutyper/Bloccit/merges","archive_url":"https://api.github.com/repos/drutyper/Bloccit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drutyper/Bloccit/downloads","issues_url":"https://api.github.com/repos/drutyper/Bloccit/issues{/number}","pulls_url":"https://api.github.com/repos/drutyper/Bloccit/pulls{/number}","milestones_url":"https://api.github.com/repos/drutyper/Bloccit/milestones{/number}","notifications_url":"https://api.github.com/repos/drutyper/Bloccit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drutyper/Bloccit/labels{/name}","releases_url":"https://api.github.com/repos/drutyper/Bloccit/releases{/id}","created_at":"2014-11-02T22:44:20Z","updated_at":"2015-01-28T21:38:23Z","pushed_at":"2015-01-28T21:44:42Z","git_url":"git://github.com/drutyper/Bloccit.git","ssh_url":"git@github.com:drutyper/Bloccit.git","clone_url":"https://github.com/drutyper/Bloccit.git","svn_url":"https://github.com/drutyper/Bloccit","homepage":null,"size":332,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/drutyper/Bloccit/pulls/1"},"html":{"href":"https://github.com/drutyper/Bloccit/pull/1"},"issue":{"href":"https://api.github.com/repos/drutyper/Bloccit/issues/1"},"comments":{"href":"https://api.github.com/repos/drutyper/Bloccit/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/drutyper/Bloccit/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/drutyper/Bloccit/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/drutyper/Bloccit/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/drutyper/Bloccit/statuses/bf9421f10f80e0634b09d6773559c37a0c9d769c"}}}}