{"action":"created","comment":{"url":"https://api.github.com/repos/willxfeng/iSpy/pulls/comments/48790680","id":48790680,"diff_hunk":"@@ -0,0 +1,26 @@\n+class ArtsController < ApplicationController\n+  def new\n+    @art = Art.new\n+  end\n+\n+  def show\n+    @art = Art.find(params[:id])\n+  end\n+\n+  def create\n+    @art = Art.new(art_params)\n+    if @art.save\n+      respond_to { |format| format.html { redirect_to @art } }\n+    else\n+      flash[:notice] = \"You must fill out all of the required fields\"\n+      render :new\n+    end\n+  end\n+\n+  private\n+\n+  def art_params\n+    params.require(:art).permit(:name, :location, :description, :category,\n+    :artist)","path":"app/controllers/arts_controller.rb","position":24,"original_position":24,"commit_id":"5e1412d05c5d52e1db9ee456c400786802a36c8f","original_commit_id":"5e1412d05c5d52e1db9ee456c400786802a36c8f","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Align the parameters of a method call if they span more than one line.","created_at":"2016-01-04T22:27:26Z","updated_at":"2016-01-04T22:27:26Z","html_url":"https://github.com/willxfeng/iSpy/pull/3#discussion_r48790680","pull_request_url":"https://api.github.com/repos/willxfeng/iSpy/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/willxfeng/iSpy/pulls/comments/48790680"},"html":{"href":"https://github.com/willxfeng/iSpy/pull/3#discussion_r48790680"},"pull_request":{"href":"https://api.github.com/repos/willxfeng/iSpy/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/willxfeng/iSpy/pulls/3","id":55029982,"html_url":"https://github.com/willxfeng/iSpy/pull/3","diff_url":"https://github.com/willxfeng/iSpy/pull/3.diff","patch_url":"https://github.com/willxfeng/iSpy/pull/3.patch","issue_url":"https://api.github.com/repos/willxfeng/iSpy/issues/3","number":3,"state":"open","locked":false,"title":"created tests, model, migrations, controller, view, and routes","user":{"login":"jrpespisa","id":13426601,"avatar_url":"https://avatars.githubusercontent.com/u/13426601?v=3","gravatar_id":"","url":"https://api.github.com/users/jrpespisa","html_url":"https://github.com/jrpespisa","followers_url":"https://api.github.com/users/jrpespisa/followers","following_url":"https://api.github.com/users/jrpespisa/following{/other_user}","gists_url":"https://api.github.com/users/jrpespisa/gists{/gist_id}","starred_url":"https://api.github.com/users/jrpespisa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrpespisa/subscriptions","organizations_url":"https://api.github.com/users/jrpespisa/orgs","repos_url":"https://api.github.com/users/jrpespisa/repos","events_url":"https://api.github.com/users/jrpespisa/events{/privacy}","received_events_url":"https://api.github.com/users/jrpespisa/received_events","type":"User","site_admin":false},"body":"Completed model and tests for adding street art.","created_at":"2016-01-04T22:19:16Z","updated_at":"2016-01-04T22:27:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d04db9d35a08df3ec2c09f267a0e9f6b8de34070","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/willxfeng/iSpy/pulls/3/commits","review_comments_url":"https://api.github.com/repos/willxfeng/iSpy/pulls/3/comments","review_comment_url":"https://api.github.com/repos/willxfeng/iSpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/willxfeng/iSpy/issues/3/comments","statuses_url":"https://api.github.com/repos/willxfeng/iSpy/statuses/5e1412d05c5d52e1db9ee456c400786802a36c8f","head":{"label":"willxfeng:jp-cn-add-art-model","ref":"jp-cn-add-art-model","sha":"5e1412d05c5d52e1db9ee456c400786802a36c8f","user":{"login":"willxfeng","id":12139283,"avatar_url":"https://avatars.githubusercontent.com/u/12139283?v=3","gravatar_id":"","url":"https://api.github.com/users/willxfeng","html_url":"https://github.com/willxfeng","followers_url":"https://api.github.com/users/willxfeng/followers","following_url":"https://api.github.com/users/willxfeng/following{/other_user}","gists_url":"https://api.github.com/users/willxfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/willxfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willxfeng/subscriptions","organizations_url":"https://api.github.com/users/willxfeng/orgs","repos_url":"https://api.github.com/users/willxfeng/repos","events_url":"https://api.github.com/users/willxfeng/events{/privacy}","received_events_url":"https://api.github.com/users/willxfeng/received_events","type":"User","site_admin":false},"repo":{"id":49006432,"name":"iSpy","full_name":"willxfeng/iSpy","owner":{"login":"willxfeng","id":12139283,"avatar_url":"https://avatars.githubusercontent.com/u/12139283?v=3","gravatar_id":"","url":"https://api.github.com/users/willxfeng","html_url":"https://github.com/willxfeng","followers_url":"https://api.github.com/users/willxfeng/followers","following_url":"https://api.github.com/users/willxfeng/following{/other_user}","gists_url":"https://api.github.com/users/willxfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/willxfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willxfeng/subscriptions","organizations_url":"https://api.github.com/users/willxfeng/orgs","repos_url":"https://api.github.com/users/willxfeng/repos","events_url":"https://api.github.com/users/willxfeng/events{/privacy}","received_events_url":"https://api.github.com/users/willxfeng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/willxfeng/iSpy","description":"Launch Academy Winter 2015 Cohort Group project","fork":false,"url":"https://api.github.com/repos/willxfeng/iSpy","forks_url":"https://api.github.com/repos/willxfeng/iSpy/forks","keys_url":"https://api.github.com/repos/willxfeng/iSpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/willxfeng/iSpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/willxfeng/iSpy/teams","hooks_url":"https://api.github.com/repos/willxfeng/iSpy/hooks","issue_events_url":"https://api.github.com/repos/willxfeng/iSpy/issues/events{/number}","events_url":"https://api.github.com/repos/willxfeng/iSpy/events","assignees_url":"https://api.github.com/repos/willxfeng/iSpy/assignees{/user}","branches_url":"https://api.github.com/repos/willxfeng/iSpy/branches{/branch}","tags_url":"https://api.github.com/repos/willxfeng/iSpy/tags","blobs_url":"https://api.github.com/repos/willxfeng/iSpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/willxfeng/iSpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/willxfeng/iSpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/willxfeng/iSpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/willxfeng/iSpy/statuses/{sha}","languages_url":"https://api.github.com/repos/willxfeng/iSpy/languages","stargazers_url":"https://api.github.com/repos/willxfeng/iSpy/stargazers","contributors_url":"https://api.github.com/repos/willxfeng/iSpy/contributors","subscribers_url":"https://api.github.com/repos/willxfeng/iSpy/subscribers","subscription_url":"https://api.github.com/repos/willxfeng/iSpy/subscription","commits_url":"https://api.github.com/repos/willxfeng/iSpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/willxfeng/iSpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/willxfeng/iSpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/willxfeng/iSpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/willxfeng/iSpy/contents/{+path}","compare_url":"https://api.github.com/repos/willxfeng/iSpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/willxfeng/iSpy/merges","archive_url":"https://api.github.com/repos/willxfeng/iSpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/willxfeng/iSpy/downloads","issues_url":"https://api.github.com/repos/willxfeng/iSpy/issues{/number}","pulls_url":"https://api.github.com/repos/willxfeng/iSpy/pulls{/number}","milestones_url":"https://api.github.com/repos/willxfeng/iSpy/milestones{/number}","notifications_url":"https://api.github.com/repos/willxfeng/iSpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/willxfeng/iSpy/labels{/name}","releases_url":"https://api.github.com/repos/willxfeng/iSpy/releases{/id}","created_at":"2016-01-04T15:45:40Z","updated_at":"2016-01-04T16:23:13Z","pushed_at":"2016-01-04T22:27:21Z","git_url":"git://github.com/willxfeng/iSpy.git","ssh_url":"git@github.com:willxfeng/iSpy.git","clone_url":"https://github.com/willxfeng/iSpy.git","svn_url":"https://github.com/willxfeng/iSpy","homepage":null,"size":84,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"willxfeng:master","ref":"master","sha":"3361add71e7d52bfa722bcd787dd05a7089e567d","user":{"login":"willxfeng","id":12139283,"avatar_url":"https://avatars.githubusercontent.com/u/12139283?v=3","gravatar_id":"","url":"https://api.github.com/users/willxfeng","html_url":"https://github.com/willxfeng","followers_url":"https://api.github.com/users/willxfeng/followers","following_url":"https://api.github.com/users/willxfeng/following{/other_user}","gists_url":"https://api.github.com/users/willxfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/willxfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willxfeng/subscriptions","organizations_url":"https://api.github.com/users/willxfeng/orgs","repos_url":"https://api.github.com/users/willxfeng/repos","events_url":"https://api.github.com/users/willxfeng/events{/privacy}","received_events_url":"https://api.github.com/users/willxfeng/received_events","type":"User","site_admin":false},"repo":{"id":49006432,"name":"iSpy","full_name":"willxfeng/iSpy","owner":{"login":"willxfeng","id":12139283,"avatar_url":"https://avatars.githubusercontent.com/u/12139283?v=3","gravatar_id":"","url":"https://api.github.com/users/willxfeng","html_url":"https://github.com/willxfeng","followers_url":"https://api.github.com/users/willxfeng/followers","following_url":"https://api.github.com/users/willxfeng/following{/other_user}","gists_url":"https://api.github.com/users/willxfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/willxfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willxfeng/subscriptions","organizations_url":"https://api.github.com/users/willxfeng/orgs","repos_url":"https://api.github.com/users/willxfeng/repos","events_url":"https://api.github.com/users/willxfeng/events{/privacy}","received_events_url":"https://api.github.com/users/willxfeng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/willxfeng/iSpy","description":"Launch Academy Winter 2015 Cohort Group project","fork":false,"url":"https://api.github.com/repos/willxfeng/iSpy","forks_url":"https://api.github.com/repos/willxfeng/iSpy/forks","keys_url":"https://api.github.com/repos/willxfeng/iSpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/willxfeng/iSpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/willxfeng/iSpy/teams","hooks_url":"https://api.github.com/repos/willxfeng/iSpy/hooks","issue_events_url":"https://api.github.com/repos/willxfeng/iSpy/issues/events{/number}","events_url":"https://api.github.com/repos/willxfeng/iSpy/events","assignees_url":"https://api.github.com/repos/willxfeng/iSpy/assignees{/user}","branches_url":"https://api.github.com/repos/willxfeng/iSpy/branches{/branch}","tags_url":"https://api.github.com/repos/willxfeng/iSpy/tags","blobs_url":"https://api.github.com/repos/willxfeng/iSpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/willxfeng/iSpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/willxfeng/iSpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/willxfeng/iSpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/willxfeng/iSpy/statuses/{sha}","languages_url":"https://api.github.com/repos/willxfeng/iSpy/languages","stargazers_url":"https://api.github.com/repos/willxfeng/iSpy/stargazers","contributors_url":"https://api.github.com/repos/willxfeng/iSpy/contributors","subscribers_url":"https://api.github.com/repos/willxfeng/iSpy/subscribers","subscription_url":"https://api.github.com/repos/willxfeng/iSpy/subscription","commits_url":"https://api.github.com/repos/willxfeng/iSpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/willxfeng/iSpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/willxfeng/iSpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/willxfeng/iSpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/willxfeng/iSpy/contents/{+path}","compare_url":"https://api.github.com/repos/willxfeng/iSpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/willxfeng/iSpy/merges","archive_url":"https://api.github.com/repos/willxfeng/iSpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/willxfeng/iSpy/downloads","issues_url":"https://api.github.com/repos/willxfeng/iSpy/issues{/number}","pulls_url":"https://api.github.com/repos/willxfeng/iSpy/pulls{/number}","milestones_url":"https://api.github.com/repos/willxfeng/iSpy/milestones{/number}","notifications_url":"https://api.github.com/repos/willxfeng/iSpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/willxfeng/iSpy/labels{/name}","releases_url":"https://api.github.com/repos/willxfeng/iSpy/releases{/id}","created_at":"2016-01-04T15:45:40Z","updated_at":"2016-01-04T16:23:13Z","pushed_at":"2016-01-04T22:27:21Z","git_url":"git://github.com/willxfeng/iSpy.git","ssh_url":"git@github.com:willxfeng/iSpy.git","clone_url":"https://github.com/willxfeng/iSpy.git","svn_url":"https://github.com/willxfeng/iSpy","homepage":null,"size":84,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/willxfeng/iSpy/pulls/3"},"html":{"href":"https://github.com/willxfeng/iSpy/pull/3"},"issue":{"href":"https://api.github.com/repos/willxfeng/iSpy/issues/3"},"comments":{"href":"https://api.github.com/repos/willxfeng/iSpy/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/willxfeng/iSpy/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/willxfeng/iSpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/willxfeng/iSpy/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/willxfeng/iSpy/statuses/5e1412d05c5d52e1db9ee456c400786802a36c8f"}}}}