{"action":"created","comment":{"url":"https://api.github.com/repos/kevincox/social-wiki/pulls/comments/57258025","id":57258025,"diff_hunk":"@@ -7,8 +7,29 @@ def index\n   \n   def show\n   end\n+\n+  def new\n+    @subject = Subject.new\n+  end\n+\n+  def create\n+    @subject = Subject.new(subject_params)\n+    respond_to do |format|\n+      if @subject.save\n+        format.html { redirect_to @subject, notice: 'Subject was successfully created.' }\n+        format.json { render :show, status: :created, location: @subject }\n+      else\n+        format.html { render :new }\n+        format.json { render json: @s.errors, status: :unprocessable_entity }","path":"app/controllers/subjects_controller.rb","position":17,"original_position":17,"commit_id":"9a5fca3452f1ce0ecf30c55cfb4bb79df7a7ca24","original_commit_id":"9a5fca3452f1ce0ecf30c55cfb4bb79df7a7ca24","user":{"login":"GoodOlChuck","id":8919364,"avatar_url":"https://avatars.githubusercontent.com/u/8919364?v=3","gravatar_id":"","url":"https://api.github.com/users/GoodOlChuck","html_url":"https://github.com/GoodOlChuck","followers_url":"https://api.github.com/users/GoodOlChuck/followers","following_url":"https://api.github.com/users/GoodOlChuck/following{/other_user}","gists_url":"https://api.github.com/users/GoodOlChuck/gists{/gist_id}","starred_url":"https://api.github.com/users/GoodOlChuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoodOlChuck/subscriptions","organizations_url":"https://api.github.com/users/GoodOlChuck/orgs","repos_url":"https://api.github.com/users/GoodOlChuck/repos","events_url":"https://api.github.com/users/GoodOlChuck/events{/privacy}","received_events_url":"https://api.github.com/users/GoodOlChuck/received_events","type":"User","site_admin":false},"body":"Well i am able to create subjects","created_at":"2016-03-24T00:07:21Z","updated_at":"2016-03-24T00:07:21Z","html_url":"https://github.com/kevincox/social-wiki/pull/37#discussion_r57258025","pull_request_url":"https://api.github.com/repos/kevincox/social-wiki/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/kevincox/social-wiki/pulls/comments/57258025"},"html":{"href":"https://github.com/kevincox/social-wiki/pull/37#discussion_r57258025"},"pull_request":{"href":"https://api.github.com/repos/kevincox/social-wiki/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/kevincox/social-wiki/pulls/37","id":63969643,"html_url":"https://github.com/kevincox/social-wiki/pull/37","diff_url":"https://github.com/kevincox/social-wiki/pull/37.diff","patch_url":"https://github.com/kevincox/social-wiki/pull/37.patch","issue_url":"https://api.github.com/repos/kevincox/social-wiki/issues/37","number":37,"state":"open","locked":false,"title":"Allowing the creation of subjects","user":{"login":"GoodOlChuck","id":8919364,"avatar_url":"https://avatars.githubusercontent.com/u/8919364?v=3","gravatar_id":"","url":"https://api.github.com/users/GoodOlChuck","html_url":"https://github.com/GoodOlChuck","followers_url":"https://api.github.com/users/GoodOlChuck/followers","following_url":"https://api.github.com/users/GoodOlChuck/following{/other_user}","gists_url":"https://api.github.com/users/GoodOlChuck/gists{/gist_id}","starred_url":"https://api.github.com/users/GoodOlChuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoodOlChuck/subscriptions","organizations_url":"https://api.github.com/users/GoodOlChuck/orgs","repos_url":"https://api.github.com/users/GoodOlChuck/repos","events_url":"https://api.github.com/users/GoodOlChuck/events{/privacy}","received_events_url":"https://api.github.com/users/GoodOlChuck/received_events","type":"User","site_admin":false},"body":"Adding the ability such that users can create subjects that must be unique. Updated files to HAML. Please review. @kevincox @ZachDFK @matthewcrooke1 ","created_at":"2016-03-23T23:33:57Z","updated_at":"2016-03-24T00:07:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e282310da1d9e9ed791cb92dbb414c8f694b354","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kevincox/social-wiki/pulls/37/commits","review_comments_url":"https://api.github.com/repos/kevincox/social-wiki/pulls/37/comments","review_comment_url":"https://api.github.com/repos/kevincox/social-wiki/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kevincox/social-wiki/issues/37/comments","statuses_url":"https://api.github.com/repos/kevincox/social-wiki/statuses/9a5fca3452f1ce0ecf30c55cfb4bb79df7a7ca24","head":{"label":"kevincox:allowing-the-creation-of-subjects","ref":"allowing-the-creation-of-subjects","sha":"9a5fca3452f1ce0ecf30c55cfb4bb79df7a7ca24","user":{"login":"kevincox","id":494012,"avatar_url":"https://avatars.githubusercontent.com/u/494012?v=3","gravatar_id":"","url":"https://api.github.com/users/kevincox","html_url":"https://github.com/kevincox","followers_url":"https://api.github.com/users/kevincox/followers","following_url":"https://api.github.com/users/kevincox/following{/other_user}","gists_url":"https://api.github.com/users/kevincox/gists{/gist_id}","starred_url":"https://api.github.com/users/kevincox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevincox/subscriptions","organizations_url":"https://api.github.com/users/kevincox/orgs","repos_url":"https://api.github.com/users/kevincox/repos","events_url":"https://api.github.com/users/kevincox/events{/privacy}","received_events_url":"https://api.github.com/users/kevincox/received_events","type":"User","site_admin":false},"repo":{"id":52527950,"name":"social-wiki","full_name":"kevincox/social-wiki","owner":{"login":"kevincox","id":494012,"avatar_url":"https://avatars.githubusercontent.com/u/494012?v=3","gravatar_id":"","url":"https://api.github.com/users/kevincox","html_url":"https://github.com/kevincox","followers_url":"https://api.github.com/users/kevincox/followers","following_url":"https://api.github.com/users/kevincox/following{/other_user}","gists_url":"https://api.github.com/users/kevincox/gists{/gist_id}","starred_url":"https://api.github.com/users/kevincox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevincox/subscriptions","organizations_url":"https://api.github.com/users/kevincox/orgs","repos_url":"https://api.github.com/users/kevincox/repos","events_url":"https://api.github.com/users/kevincox/events{/privacy}","received_events_url":"https://api.github.com/users/kevincox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kevincox/social-wiki","description":"","fork":false,"url":"https://api.github.com/repos/kevincox/social-wiki","forks_url":"https://api.github.com/repos/kevincox/social-wiki/forks","keys_url":"https://api.github.com/repos/kevincox/social-wiki/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kevincox/social-wiki/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kevincox/social-wiki/teams","hooks_url":"https://api.github.com/repos/kevincox/social-wiki/hooks","issue_events_url":"https://api.github.com/repos/kevincox/social-wiki/issues/events{/number}","events_url":"https://api.github.com/repos/kevincox/social-wiki/events","assignees_url":"https://api.github.com/repos/kevincox/social-wiki/assignees{/user}","branches_url":"https://api.github.com/repos/kevincox/social-wiki/branches{/branch}","tags_url":"https://api.github.com/repos/kevincox/social-wiki/tags","blobs_url":"https://api.github.com/repos/kevincox/social-wiki/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kevincox/social-wiki/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kevincox/social-wiki/git/refs{/sha}","trees_url":"https://api.github.com/repos/kevincox/social-wiki/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kevincox/social-wiki/statuses/{sha}","languages_url":"https://api.github.com/repos/kevincox/social-wiki/languages","stargazers_url":"https://api.github.com/repos/kevincox/social-wiki/stargazers","contributors_url":"https://api.github.com/repos/kevincox/social-wiki/contributors","subscribers_url":"https://api.github.com/repos/kevincox/social-wiki/subscribers","subscription_url":"https://api.github.com/repos/kevincox/social-wiki/subscription","commits_url":"https://api.github.com/repos/kevincox/social-wiki/commits{/sha}","git_commits_url":"https://api.github.com/repos/kevincox/social-wiki/git/commits{/sha}","comments_url":"https://api.github.com/repos/kevincox/social-wiki/comments{/number}","issue_comment_url":"https://api.github.com/repos/kevincox/social-wiki/issues/comments{/number}","contents_url":"https://api.github.com/repos/kevincox/social-wiki/contents/{+path}","compare_url":"https://api.github.com/repos/kevincox/social-wiki/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kevincox/social-wiki/merges","archive_url":"https://api.github.com/repos/kevincox/social-wiki/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kevincox/social-wiki/downloads","issues_url":"https://api.github.com/repos/kevincox/social-wiki/issues{/number}","pulls_url":"https://api.github.com/repos/kevincox/social-wiki/pulls{/number}","milestones_url":"https://api.github.com/repos/kevincox/social-wiki/milestones{/number}","notifications_url":"https://api.github.com/repos/kevincox/social-wiki/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kevincox/social-wiki/labels{/name}","releases_url":"https://api.github.com/repos/kevincox/social-wiki/releases{/id}","deployments_url":"https://api.github.com/repos/kevincox/social-wiki/deployments","created_at":"2016-02-25T13:53:03Z","updated_at":"2016-02-25T14:53:47Z","pushed_at":"2016-03-23T23:33:58Z","git_url":"git://github.com/kevincox/social-wiki.git","ssh_url":"git@github.com:kevincox/social-wiki.git","clone_url":"https://github.com/kevincox/social-wiki.git","svn_url":"https://github.com/kevincox/social-wiki","homepage":null,"size":115,"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":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"base":{"label":"kevincox:master","ref":"master","sha":"b4cd039ddadf0f657803bb3af5312ad0e848b397","user":{"login":"kevincox","id":494012,"avatar_url":"https://avatars.githubusercontent.com/u/494012?v=3","gravatar_id":"","url":"https://api.github.com/users/kevincox","html_url":"https://github.com/kevincox","followers_url":"https://api.github.com/users/kevincox/followers","following_url":"https://api.github.com/users/kevincox/following{/other_user}","gists_url":"https://api.github.com/users/kevincox/gists{/gist_id}","starred_url":"https://api.github.com/users/kevincox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevincox/subscriptions","organizations_url":"https://api.github.com/users/kevincox/orgs","repos_url":"https://api.github.com/users/kevincox/repos","events_url":"https://api.github.com/users/kevincox/events{/privacy}","received_events_url":"https://api.github.com/users/kevincox/received_events","type":"User","site_admin":false},"repo":{"id":52527950,"name":"social-wiki","full_name":"kevincox/social-wiki","owner":{"login":"kevincox","id":494012,"avatar_url":"https://avatars.githubusercontent.com/u/494012?v=3","gravatar_id":"","url":"https://api.github.com/users/kevincox","html_url":"https://github.com/kevincox","followers_url":"https://api.github.com/users/kevincox/followers","following_url":"https://api.github.com/users/kevincox/following{/other_user}","gists_url":"https://api.github.com/users/kevincox/gists{/gist_id}","starred_url":"https://api.github.com/users/kevincox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevincox/subscriptions","organizations_url":"https://api.github.com/users/kevincox/orgs","repos_url":"https://api.github.com/users/kevincox/repos","events_url":"https://api.github.com/users/kevincox/events{/privacy}","received_events_url":"https://api.github.com/users/kevincox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kevincox/social-wiki","description":"","fork":false,"url":"https://api.github.com/repos/kevincox/social-wiki","forks_url":"https://api.github.com/repos/kevincox/social-wiki/forks","keys_url":"https://api.github.com/repos/kevincox/social-wiki/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kevincox/social-wiki/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kevincox/social-wiki/teams","hooks_url":"https://api.github.com/repos/kevincox/social-wiki/hooks","issue_events_url":"https://api.github.com/repos/kevincox/social-wiki/issues/events{/number}","events_url":"https://api.github.com/repos/kevincox/social-wiki/events","assignees_url":"https://api.github.com/repos/kevincox/social-wiki/assignees{/user}","branches_url":"https://api.github.com/repos/kevincox/social-wiki/branches{/branch}","tags_url":"https://api.github.com/repos/kevincox/social-wiki/tags","blobs_url":"https://api.github.com/repos/kevincox/social-wiki/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kevincox/social-wiki/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kevincox/social-wiki/git/refs{/sha}","trees_url":"https://api.github.com/repos/kevincox/social-wiki/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kevincox/social-wiki/statuses/{sha}","languages_url":"https://api.github.com/repos/kevincox/social-wiki/languages","stargazers_url":"https://api.github.com/repos/kevincox/social-wiki/stargazers","contributors_url":"https://api.github.com/repos/kevincox/social-wiki/contributors","subscribers_url":"https://api.github.com/repos/kevincox/social-wiki/subscribers","subscription_url":"https://api.github.com/repos/kevincox/social-wiki/subscription","commits_url":"https://api.github.com/repos/kevincox/social-wiki/commits{/sha}","git_commits_url":"https://api.github.com/repos/kevincox/social-wiki/git/commits{/sha}","comments_url":"https://api.github.com/repos/kevincox/social-wiki/comments{/number}","issue_comment_url":"https://api.github.com/repos/kevincox/social-wiki/issues/comments{/number}","contents_url":"https://api.github.com/repos/kevincox/social-wiki/contents/{+path}","compare_url":"https://api.github.com/repos/kevincox/social-wiki/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kevincox/social-wiki/merges","archive_url":"https://api.github.com/repos/kevincox/social-wiki/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kevincox/social-wiki/downloads","issues_url":"https://api.github.com/repos/kevincox/social-wiki/issues{/number}","pulls_url":"https://api.github.com/repos/kevincox/social-wiki/pulls{/number}","milestones_url":"https://api.github.com/repos/kevincox/social-wiki/milestones{/number}","notifications_url":"https://api.github.com/repos/kevincox/social-wiki/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kevincox/social-wiki/labels{/name}","releases_url":"https://api.github.com/repos/kevincox/social-wiki/releases{/id}","deployments_url":"https://api.github.com/repos/kevincox/social-wiki/deployments","created_at":"2016-02-25T13:53:03Z","updated_at":"2016-02-25T14:53:47Z","pushed_at":"2016-03-23T23:33:58Z","git_url":"git://github.com/kevincox/social-wiki.git","ssh_url":"git@github.com:kevincox/social-wiki.git","clone_url":"https://github.com/kevincox/social-wiki.git","svn_url":"https://github.com/kevincox/social-wiki","homepage":null,"size":115,"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":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kevincox/social-wiki/pulls/37"},"html":{"href":"https://github.com/kevincox/social-wiki/pull/37"},"issue":{"href":"https://api.github.com/repos/kevincox/social-wiki/issues/37"},"comments":{"href":"https://api.github.com/repos/kevincox/social-wiki/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/kevincox/social-wiki/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/kevincox/social-wiki/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kevincox/social-wiki/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/kevincox/social-wiki/statuses/9a5fca3452f1ce0ecf30c55cfb4bb79df7a7ca24"}}}}