{"action":"created","comment":{"url":"https://api.github.com/repos/thompickett/super-coders/pulls/comments/61199258","id":61199258,"diff_hunk":"@@ -0,0 +1,24 @@\n+class Admin::CodersController < Admin::BaseController\n+  def index\n+    @coders = Coder.all\n+  end\n+\n+  def edit\n+    @coder = Coder.find(params[:id])\n+  end\n+\n+  def update\n+    @coder = Coder.find(params[:id])\n+    if @coder.update(coder_params)\n+      flash[:message] = \"Coder successfully updated!\"\n+      redirect_to @coder\n+    else\n+      render :edit\n+    end\n+  end\n+\n+  private\n+  def coder_params\n+    params.require(:coder).permit(:name, :experience, :category_id, :image_url, :cost)","path":"app/controllers/admin/coders_controller.rb","position":22,"original_position":22,"commit_id":"7c3601fcc17a9d8b0eaf0247e1d1ebfd705e36b8","original_commit_id":"7c3601fcc17a9d8b0eaf0247e1d1ebfd705e36b8","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":"Line is too long. [86/80]","created_at":"2016-04-27T03:28:00Z","updated_at":"2016-04-27T03:28:00Z","html_url":"https://github.com/thompickett/super-coders/pull/89#discussion_r61199258","pull_request_url":"https://api.github.com/repos/thompickett/super-coders/pulls/89","_links":{"self":{"href":"https://api.github.com/repos/thompickett/super-coders/pulls/comments/61199258"},"html":{"href":"https://github.com/thompickett/super-coders/pull/89#discussion_r61199258"},"pull_request":{"href":"https://api.github.com/repos/thompickett/super-coders/pulls/89"}}},"pull_request":{"url":"https://api.github.com/repos/thompickett/super-coders/pulls/89","id":67991498,"html_url":"https://github.com/thompickett/super-coders/pull/89","diff_url":"https://github.com/thompickett/super-coders/pull/89.diff","patch_url":"https://github.com/thompickett/super-coders/pull/89.patch","issue_url":"https://api.github.com/repos/thompickett/super-coders/issues/89","number":89,"state":"open","locked":false,"title":"Create admin coders index and admin coders edit","user":{"login":"s-espinosa","id":10855116,"avatar_url":"https://avatars.githubusercontent.com/u/10855116?v=3","gravatar_id":"","url":"https://api.github.com/users/s-espinosa","html_url":"https://github.com/s-espinosa","followers_url":"https://api.github.com/users/s-espinosa/followers","following_url":"https://api.github.com/users/s-espinosa/following{/other_user}","gists_url":"https://api.github.com/users/s-espinosa/gists{/gist_id}","starred_url":"https://api.github.com/users/s-espinosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-espinosa/subscriptions","organizations_url":"https://api.github.com/users/s-espinosa/orgs","repos_url":"https://api.github.com/users/s-espinosa/repos","events_url":"https://api.github.com/users/s-espinosa/events{/privacy}","received_events_url":"https://api.github.com/users/s-espinosa/received_events","type":"User","site_admin":false},"body":"* Update to remove comments and saop\r\n* Add admin coder index page\r\n* Add admin coder edit page\r\n* Add admin ability update\r\n* Add tests and related views","created_at":"2016-04-27T03:27:56Z","updated_at":"2016-04-27T03:28:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ba92caab0cf2b80b623a44c240519ea4f098f02","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thompickett/super-coders/pulls/89/commits","review_comments_url":"https://api.github.com/repos/thompickett/super-coders/pulls/89/comments","review_comment_url":"https://api.github.com/repos/thompickett/super-coders/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thompickett/super-coders/issues/89/comments","statuses_url":"https://api.github.com/repos/thompickett/super-coders/statuses/7c3601fcc17a9d8b0eaf0247e1d1ebfd705e36b8","head":{"label":"thompickett:82_admin_edits_an_item","ref":"82_admin_edits_an_item","sha":"7c3601fcc17a9d8b0eaf0247e1d1ebfd705e36b8","user":{"login":"thompickett","id":15093580,"avatar_url":"https://avatars.githubusercontent.com/u/15093580?v=3","gravatar_id":"","url":"https://api.github.com/users/thompickett","html_url":"https://github.com/thompickett","followers_url":"https://api.github.com/users/thompickett/followers","following_url":"https://api.github.com/users/thompickett/following{/other_user}","gists_url":"https://api.github.com/users/thompickett/gists{/gist_id}","starred_url":"https://api.github.com/users/thompickett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thompickett/subscriptions","organizations_url":"https://api.github.com/users/thompickett/orgs","repos_url":"https://api.github.com/users/thompickett/repos","events_url":"https://api.github.com/users/thompickett/events{/privacy}","received_events_url":"https://api.github.com/users/thompickett/received_events","type":"User","site_admin":false},"repo":{"id":56545078,"name":"super-coders","full_name":"thompickett/super-coders","owner":{"login":"thompickett","id":15093580,"avatar_url":"https://avatars.githubusercontent.com/u/15093580?v=3","gravatar_id":"","url":"https://api.github.com/users/thompickett","html_url":"https://github.com/thompickett","followers_url":"https://api.github.com/users/thompickett/followers","following_url":"https://api.github.com/users/thompickett/following{/other_user}","gists_url":"https://api.github.com/users/thompickett/gists{/gist_id}","starred_url":"https://api.github.com/users/thompickett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thompickett/subscriptions","organizations_url":"https://api.github.com/users/thompickett/orgs","repos_url":"https://api.github.com/users/thompickett/repos","events_url":"https://api.github.com/users/thompickett/events{/privacy}","received_events_url":"https://api.github.com/users/thompickett/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thompickett/super-coders","description":null,"fork":false,"url":"https://api.github.com/repos/thompickett/super-coders","forks_url":"https://api.github.com/repos/thompickett/super-coders/forks","keys_url":"https://api.github.com/repos/thompickett/super-coders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thompickett/super-coders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thompickett/super-coders/teams","hooks_url":"https://api.github.com/repos/thompickett/super-coders/hooks","issue_events_url":"https://api.github.com/repos/thompickett/super-coders/issues/events{/number}","events_url":"https://api.github.com/repos/thompickett/super-coders/events","assignees_url":"https://api.github.com/repos/thompickett/super-coders/assignees{/user}","branches_url":"https://api.github.com/repos/thompickett/super-coders/branches{/branch}","tags_url":"https://api.github.com/repos/thompickett/super-coders/tags","blobs_url":"https://api.github.com/repos/thompickett/super-coders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thompickett/super-coders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thompickett/super-coders/git/refs{/sha}","trees_url":"https://api.github.com/repos/thompickett/super-coders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thompickett/super-coders/statuses/{sha}","languages_url":"https://api.github.com/repos/thompickett/super-coders/languages","stargazers_url":"https://api.github.com/repos/thompickett/super-coders/stargazers","contributors_url":"https://api.github.com/repos/thompickett/super-coders/contributors","subscribers_url":"https://api.github.com/repos/thompickett/super-coders/subscribers","subscription_url":"https://api.github.com/repos/thompickett/super-coders/subscription","commits_url":"https://api.github.com/repos/thompickett/super-coders/commits{/sha}","git_commits_url":"https://api.github.com/repos/thompickett/super-coders/git/commits{/sha}","comments_url":"https://api.github.com/repos/thompickett/super-coders/comments{/number}","issue_comment_url":"https://api.github.com/repos/thompickett/super-coders/issues/comments{/number}","contents_url":"https://api.github.com/repos/thompickett/super-coders/contents/{+path}","compare_url":"https://api.github.com/repos/thompickett/super-coders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thompickett/super-coders/merges","archive_url":"https://api.github.com/repos/thompickett/super-coders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thompickett/super-coders/downloads","issues_url":"https://api.github.com/repos/thompickett/super-coders/issues{/number}","pulls_url":"https://api.github.com/repos/thompickett/super-coders/pulls{/number}","milestones_url":"https://api.github.com/repos/thompickett/super-coders/milestones{/number}","notifications_url":"https://api.github.com/repos/thompickett/super-coders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thompickett/super-coders/labels{/name}","releases_url":"https://api.github.com/repos/thompickett/super-coders/releases{/id}","deployments_url":"https://api.github.com/repos/thompickett/super-coders/deployments","created_at":"2016-04-18T21:58:06Z","updated_at":"2016-04-23T00:46:30Z","pushed_at":"2016-04-27T03:27:57Z","git_url":"git://github.com/thompickett/super-coders.git","ssh_url":"git@github.com:thompickett/super-coders.git","clone_url":"https://github.com/thompickett/super-coders.git","svn_url":"https://github.com/thompickett/super-coders","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":22,"forks":0,"open_issues":22,"watchers":0,"default_branch":"master"}},"base":{"label":"thompickett:master","ref":"master","sha":"99361c89a04d389ebbb4a1f46f271551883806ec","user":{"login":"thompickett","id":15093580,"avatar_url":"https://avatars.githubusercontent.com/u/15093580?v=3","gravatar_id":"","url":"https://api.github.com/users/thompickett","html_url":"https://github.com/thompickett","followers_url":"https://api.github.com/users/thompickett/followers","following_url":"https://api.github.com/users/thompickett/following{/other_user}","gists_url":"https://api.github.com/users/thompickett/gists{/gist_id}","starred_url":"https://api.github.com/users/thompickett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thompickett/subscriptions","organizations_url":"https://api.github.com/users/thompickett/orgs","repos_url":"https://api.github.com/users/thompickett/repos","events_url":"https://api.github.com/users/thompickett/events{/privacy}","received_events_url":"https://api.github.com/users/thompickett/received_events","type":"User","site_admin":false},"repo":{"id":56545078,"name":"super-coders","full_name":"thompickett/super-coders","owner":{"login":"thompickett","id":15093580,"avatar_url":"https://avatars.githubusercontent.com/u/15093580?v=3","gravatar_id":"","url":"https://api.github.com/users/thompickett","html_url":"https://github.com/thompickett","followers_url":"https://api.github.com/users/thompickett/followers","following_url":"https://api.github.com/users/thompickett/following{/other_user}","gists_url":"https://api.github.com/users/thompickett/gists{/gist_id}","starred_url":"https://api.github.com/users/thompickett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thompickett/subscriptions","organizations_url":"https://api.github.com/users/thompickett/orgs","repos_url":"https://api.github.com/users/thompickett/repos","events_url":"https://api.github.com/users/thompickett/events{/privacy}","received_events_url":"https://api.github.com/users/thompickett/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thompickett/super-coders","description":null,"fork":false,"url":"https://api.github.com/repos/thompickett/super-coders","forks_url":"https://api.github.com/repos/thompickett/super-coders/forks","keys_url":"https://api.github.com/repos/thompickett/super-coders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thompickett/super-coders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thompickett/super-coders/teams","hooks_url":"https://api.github.com/repos/thompickett/super-coders/hooks","issue_events_url":"https://api.github.com/repos/thompickett/super-coders/issues/events{/number}","events_url":"https://api.github.com/repos/thompickett/super-coders/events","assignees_url":"https://api.github.com/repos/thompickett/super-coders/assignees{/user}","branches_url":"https://api.github.com/repos/thompickett/super-coders/branches{/branch}","tags_url":"https://api.github.com/repos/thompickett/super-coders/tags","blobs_url":"https://api.github.com/repos/thompickett/super-coders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thompickett/super-coders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thompickett/super-coders/git/refs{/sha}","trees_url":"https://api.github.com/repos/thompickett/super-coders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thompickett/super-coders/statuses/{sha}","languages_url":"https://api.github.com/repos/thompickett/super-coders/languages","stargazers_url":"https://api.github.com/repos/thompickett/super-coders/stargazers","contributors_url":"https://api.github.com/repos/thompickett/super-coders/contributors","subscribers_url":"https://api.github.com/repos/thompickett/super-coders/subscribers","subscription_url":"https://api.github.com/repos/thompickett/super-coders/subscription","commits_url":"https://api.github.com/repos/thompickett/super-coders/commits{/sha}","git_commits_url":"https://api.github.com/repos/thompickett/super-coders/git/commits{/sha}","comments_url":"https://api.github.com/repos/thompickett/super-coders/comments{/number}","issue_comment_url":"https://api.github.com/repos/thompickett/super-coders/issues/comments{/number}","contents_url":"https://api.github.com/repos/thompickett/super-coders/contents/{+path}","compare_url":"https://api.github.com/repos/thompickett/super-coders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thompickett/super-coders/merges","archive_url":"https://api.github.com/repos/thompickett/super-coders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thompickett/super-coders/downloads","issues_url":"https://api.github.com/repos/thompickett/super-coders/issues{/number}","pulls_url":"https://api.github.com/repos/thompickett/super-coders/pulls{/number}","milestones_url":"https://api.github.com/repos/thompickett/super-coders/milestones{/number}","notifications_url":"https://api.github.com/repos/thompickett/super-coders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thompickett/super-coders/labels{/name}","releases_url":"https://api.github.com/repos/thompickett/super-coders/releases{/id}","deployments_url":"https://api.github.com/repos/thompickett/super-coders/deployments","created_at":"2016-04-18T21:58:06Z","updated_at":"2016-04-23T00:46:30Z","pushed_at":"2016-04-27T03:27:57Z","git_url":"git://github.com/thompickett/super-coders.git","ssh_url":"git@github.com:thompickett/super-coders.git","clone_url":"https://github.com/thompickett/super-coders.git","svn_url":"https://github.com/thompickett/super-coders","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":22,"forks":0,"open_issues":22,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thompickett/super-coders/pulls/89"},"html":{"href":"https://github.com/thompickett/super-coders/pull/89"},"issue":{"href":"https://api.github.com/repos/thompickett/super-coders/issues/89"},"comments":{"href":"https://api.github.com/repos/thompickett/super-coders/issues/89/comments"},"review_comments":{"href":"https://api.github.com/repos/thompickett/super-coders/pulls/89/comments"},"review_comment":{"href":"https://api.github.com/repos/thompickett/super-coders/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thompickett/super-coders/pulls/89/commits"},"statuses":{"href":"https://api.github.com/repos/thompickett/super-coders/statuses/7c3601fcc17a9d8b0eaf0247e1d1ebfd705e36b8"}}}}