{"action":"created","comment":{"url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/pulls/comments/73090326","id":73090326,"diff_hunk":"@@ -0,0 +1,41 @@\n+class Admin::ItemsController < Admin::BaseController\n+  before_action :set_item, only: [:edit, :update]\n+\n+  def new\n+    @item = Item.new\n+  end\n+\n+  def create\n+    @item = Item.new(item_params)\n+    if @item.save\n+      flash[:notice] = \"Successfully Created Item!\"","path":"app/controllers/admin/items_controller.rb","position":11,"original_position":11,"commit_id":"91e3ce8395b758debd918d9abc9cf83353f2f305","original_commit_id":"91e3ce8395b758debd918d9abc9cf83353f2f305","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2016-08-02T03:42:44Z","updated_at":"2016-08-02T03:42:44Z","html_url":"https://github.com/NicoleKMarino/westeros_outfitters/pull/156#discussion_r73090326","pull_request_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/pulls/156","_links":{"self":{"href":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/pulls/comments/73090326"},"html":{"href":"https://github.com/NicoleKMarino/westeros_outfitters/pull/156#discussion_r73090326"},"pull_request":{"href":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/pulls/156"}}},"pull_request":{"url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/pulls/156","id":79671830,"html_url":"https://github.com/NicoleKMarino/westeros_outfitters/pull/156","diff_url":"https://github.com/NicoleKMarino/westeros_outfitters/pull/156.diff","patch_url":"https://github.com/NicoleKMarino/westeros_outfitters/pull/156.patch","issue_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/issues/156","number":156,"state":"open","locked":false,"title":"Admin functionality to add and edit items","user":{"login":"GSmes","id":17463835,"avatar_url":"https://avatars.githubusercontent.com/u/17463835?v=3","gravatar_id":"","url":"https://api.github.com/users/GSmes","html_url":"https://github.com/GSmes","followers_url":"https://api.github.com/users/GSmes/followers","following_url":"https://api.github.com/users/GSmes/following{/other_user}","gists_url":"https://api.github.com/users/GSmes/gists{/gist_id}","starred_url":"https://api.github.com/users/GSmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GSmes/subscriptions","organizations_url":"https://api.github.com/users/GSmes/orgs","repos_url":"https://api.github.com/users/GSmes/repos","events_url":"https://api.github.com/users/GSmes/events{/privacy}","received_events_url":"https://api.github.com/users/GSmes/received_events","type":"User","site_admin":false},"body":"Added all the functionality in controllers\r\nEdited navbar to reflect Admin-only actions\r\nAdded Edit Item link to Item show page\r\nEdited Admin edit user & show user views\r\nCreated test files for Admin add & edit item functionality, but have NOT written any tests yet.","created_at":"2016-08-02T03:42:40Z","updated_at":"2016-08-02T03:42:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0413eb4c8959b8247f99ca0a0710220eb6efe473","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/pulls/156/commits","review_comments_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/pulls/156/comments","review_comment_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/issues/156/comments","statuses_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/statuses/91e3ce8395b758debd918d9abc9cf83353f2f305","head":{"label":"NicoleKMarino:item_create_and_edit","ref":"item_create_and_edit","sha":"91e3ce8395b758debd918d9abc9cf83353f2f305","user":{"login":"NicoleKMarino","id":16449672,"avatar_url":"https://avatars.githubusercontent.com/u/16449672?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleKMarino","html_url":"https://github.com/NicoleKMarino","followers_url":"https://api.github.com/users/NicoleKMarino/followers","following_url":"https://api.github.com/users/NicoleKMarino/following{/other_user}","gists_url":"https://api.github.com/users/NicoleKMarino/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleKMarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleKMarino/subscriptions","organizations_url":"https://api.github.com/users/NicoleKMarino/orgs","repos_url":"https://api.github.com/users/NicoleKMarino/repos","events_url":"https://api.github.com/users/NicoleKMarino/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleKMarino/received_events","type":"User","site_admin":false},"repo":{"id":64170034,"name":"westeros_outfitters","full_name":"NicoleKMarino/westeros_outfitters","owner":{"login":"NicoleKMarino","id":16449672,"avatar_url":"https://avatars.githubusercontent.com/u/16449672?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleKMarino","html_url":"https://github.com/NicoleKMarino","followers_url":"https://api.github.com/users/NicoleKMarino/followers","following_url":"https://api.github.com/users/NicoleKMarino/following{/other_user}","gists_url":"https://api.github.com/users/NicoleKMarino/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleKMarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleKMarino/subscriptions","organizations_url":"https://api.github.com/users/NicoleKMarino/orgs","repos_url":"https://api.github.com/users/NicoleKMarino/repos","events_url":"https://api.github.com/users/NicoleKMarino/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleKMarino/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NicoleKMarino/westeros_outfitters","description":null,"fork":false,"url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters","forks_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/forks","keys_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/teams","hooks_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/hooks","issue_events_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/issues/events{/number}","events_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/events","assignees_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/assignees{/user}","branches_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/branches{/branch}","tags_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/tags","blobs_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/git/refs{/sha}","trees_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/statuses/{sha}","languages_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/languages","stargazers_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/stargazers","contributors_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/contributors","subscribers_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/subscribers","subscription_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/subscription","commits_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/commits{/sha}","git_commits_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/git/commits{/sha}","comments_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/comments{/number}","issue_comment_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/issues/comments{/number}","contents_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/contents/{+path}","compare_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/merges","archive_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/downloads","issues_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/issues{/number}","pulls_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/pulls{/number}","milestones_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/milestones{/number}","notifications_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/labels{/name}","releases_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/releases{/id}","deployments_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/deployments","created_at":"2016-07-25T21:46:31Z","updated_at":"2016-07-25T21:53:23Z","pushed_at":"2016-08-02T03:42:41Z","git_url":"git://github.com/NicoleKMarino/westeros_outfitters.git","ssh_url":"git@github.com:NicoleKMarino/westeros_outfitters.git","clone_url":"https://github.com/NicoleKMarino/westeros_outfitters.git","svn_url":"https://github.com/NicoleKMarino/westeros_outfitters","homepage":null,"size":371,"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":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"NicoleKMarino:master","ref":"master","sha":"ed93cf6629dd231d3cb8b269098b1a048751bfef","user":{"login":"NicoleKMarino","id":16449672,"avatar_url":"https://avatars.githubusercontent.com/u/16449672?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleKMarino","html_url":"https://github.com/NicoleKMarino","followers_url":"https://api.github.com/users/NicoleKMarino/followers","following_url":"https://api.github.com/users/NicoleKMarino/following{/other_user}","gists_url":"https://api.github.com/users/NicoleKMarino/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleKMarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleKMarino/subscriptions","organizations_url":"https://api.github.com/users/NicoleKMarino/orgs","repos_url":"https://api.github.com/users/NicoleKMarino/repos","events_url":"https://api.github.com/users/NicoleKMarino/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleKMarino/received_events","type":"User","site_admin":false},"repo":{"id":64170034,"name":"westeros_outfitters","full_name":"NicoleKMarino/westeros_outfitters","owner":{"login":"NicoleKMarino","id":16449672,"avatar_url":"https://avatars.githubusercontent.com/u/16449672?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleKMarino","html_url":"https://github.com/NicoleKMarino","followers_url":"https://api.github.com/users/NicoleKMarino/followers","following_url":"https://api.github.com/users/NicoleKMarino/following{/other_user}","gists_url":"https://api.github.com/users/NicoleKMarino/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleKMarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleKMarino/subscriptions","organizations_url":"https://api.github.com/users/NicoleKMarino/orgs","repos_url":"https://api.github.com/users/NicoleKMarino/repos","events_url":"https://api.github.com/users/NicoleKMarino/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleKMarino/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NicoleKMarino/westeros_outfitters","description":null,"fork":false,"url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters","forks_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/forks","keys_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/teams","hooks_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/hooks","issue_events_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/issues/events{/number}","events_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/events","assignees_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/assignees{/user}","branches_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/branches{/branch}","tags_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/tags","blobs_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/git/refs{/sha}","trees_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/statuses/{sha}","languages_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/languages","stargazers_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/stargazers","contributors_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/contributors","subscribers_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/subscribers","subscription_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/subscription","commits_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/commits{/sha}","git_commits_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/git/commits{/sha}","comments_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/comments{/number}","issue_comment_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/issues/comments{/number}","contents_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/contents/{+path}","compare_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/merges","archive_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/downloads","issues_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/issues{/number}","pulls_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/pulls{/number}","milestones_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/milestones{/number}","notifications_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/labels{/name}","releases_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/releases{/id}","deployments_url":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/deployments","created_at":"2016-07-25T21:46:31Z","updated_at":"2016-07-25T21:53:23Z","pushed_at":"2016-08-02T03:42:41Z","git_url":"git://github.com/NicoleKMarino/westeros_outfitters.git","ssh_url":"git@github.com:NicoleKMarino/westeros_outfitters.git","clone_url":"https://github.com/NicoleKMarino/westeros_outfitters.git","svn_url":"https://github.com/NicoleKMarino/westeros_outfitters","homepage":null,"size":371,"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":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/pulls/156"},"html":{"href":"https://github.com/NicoleKMarino/westeros_outfitters/pull/156"},"issue":{"href":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/issues/156"},"comments":{"href":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/issues/156/comments"},"review_comments":{"href":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/pulls/156/comments"},"review_comment":{"href":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/pulls/156/commits"},"statuses":{"href":"https://api.github.com/repos/NicoleKMarino/westeros_outfitters/statuses/91e3ce8395b758debd918d9abc9cf83353f2f305"}}}}
{"actor":{"display_login":"houndci-bot"}}