{"action":"created","comment":{"url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/pulls/comments/52657916","id":52657916,"diff_hunk":"@@ -38,6 +38,20 @@ def destroy\n     redirect_to action: :index, status: 303\n   end\n \n+  def edit\n+  end\n+\n+  def update\n+    if @image.update(image_params)\n+      flash[:notice] = 'You successfully updated the image!'\n+      redirect_to action: :show\n+    else\n+      @image.reload","path":"app/controllers/images_controller.rb","position":19,"original_position":19,"commit_id":"2c4ec41b97d90578027d2a2f09764aea3cf934ef","original_commit_id":"2c4ec41b97d90578027d2a2f09764aea3cf934ef","user":{"login":"rmacklin","id":1863540,"avatar_url":"https://avatars.githubusercontent.com/u/1863540?v=3","gravatar_id":"","url":"https://api.github.com/users/rmacklin","html_url":"https://github.com/rmacklin","followers_url":"https://api.github.com/users/rmacklin/followers","following_url":"https://api.github.com/users/rmacklin/following{/other_user}","gists_url":"https://api.github.com/users/rmacklin/gists{/gist_id}","starred_url":"https://api.github.com/users/rmacklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmacklin/subscriptions","organizations_url":"https://api.github.com/users/rmacklin/orgs","repos_url":"https://api.github.com/users/rmacklin/repos","events_url":"https://api.github.com/users/rmacklin/events{/privacy}","received_events_url":"https://api.github.com/users/rmacklin/received_events","type":"User","site_admin":false},"body":"Well, I think that's a bit of a UX anti-pattern actually. I think it'd be better to leave the input as they had last entered it.","created_at":"2016-02-11T19:58:52Z","updated_at":"2016-02-11T19:58:52Z","html_url":"https://github.com/AppFolioOnboarding/Li_Image_Share/pull/33#discussion_r52657916","pull_request_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/pulls/comments/52657916"},"html":{"href":"https://github.com/AppFolioOnboarding/Li_Image_Share/pull/33#discussion_r52657916"},"pull_request":{"href":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/pulls/33","id":59075782,"html_url":"https://github.com/AppFolioOnboarding/Li_Image_Share/pull/33","diff_url":"https://github.com/AppFolioOnboarding/Li_Image_Share/pull/33.diff","patch_url":"https://github.com/AppFolioOnboarding/Li_Image_Share/pull/33.patch","issue_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/issues/33","number":33,"state":"open","locked":false,"title":"lz - Add image edit page and its tests","user":{"login":"lzhang0616","id":10234903,"avatar_url":"https://avatars.githubusercontent.com/u/10234903?v=3","gravatar_id":"","url":"https://api.github.com/users/lzhang0616","html_url":"https://github.com/lzhang0616","followers_url":"https://api.github.com/users/lzhang0616/followers","following_url":"https://api.github.com/users/lzhang0616/following{/other_user}","gists_url":"https://api.github.com/users/lzhang0616/gists{/gist_id}","starred_url":"https://api.github.com/users/lzhang0616/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzhang0616/subscriptions","organizations_url":"https://api.github.com/users/lzhang0616/orgs","repos_url":"https://api.github.com/users/lzhang0616/repos","events_url":"https://api.github.com/users/lzhang0616/events{/privacy}","received_events_url":"https://api.github.com/users/lzhang0616/received_events","type":"User","site_admin":false},"body":"Closes #17 ","created_at":"2016-02-11T18:50:14Z","updated_at":"2016-02-11T19:58:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6869ab4225661eb40555c5b607b732ed2fff0f10","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/pulls/33/commits","review_comments_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/pulls/33/comments","review_comment_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/issues/33/comments","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/statuses/2c4ec41b97d90578027d2a2f09764aea3cf934ef","head":{"label":"AppFolioOnboarding:AddImageEditPage","ref":"AddImageEditPage","sha":"2c4ec41b97d90578027d2a2f09764aea3cf934ef","user":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"repo":{"id":50390213,"name":"Li_Image_Share","full_name":"AppFolioOnboarding/Li_Image_Share","owner":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AppFolioOnboarding/Li_Image_Share","description":"","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share","forks_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/deployments","created_at":"2016-01-26T00:06:48Z","updated_at":"2016-01-26T00:16:49Z","pushed_at":"2016-02-11T18:50:14Z","git_url":"git://github.com/AppFolioOnboarding/Li_Image_Share.git","ssh_url":"git@github.com:AppFolioOnboarding/Li_Image_Share.git","clone_url":"https://github.com/AppFolioOnboarding/Li_Image_Share.git","svn_url":"https://github.com/AppFolioOnboarding/Li_Image_Share","homepage":null,"size":91,"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":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"AppFolioOnboarding:master","ref":"master","sha":"8a1dddff6d974f2dcd1c23ef95f943ca9dccb91b","user":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"repo":{"id":50390213,"name":"Li_Image_Share","full_name":"AppFolioOnboarding/Li_Image_Share","owner":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AppFolioOnboarding/Li_Image_Share","description":"","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share","forks_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/deployments","created_at":"2016-01-26T00:06:48Z","updated_at":"2016-01-26T00:16:49Z","pushed_at":"2016-02-11T18:50:14Z","git_url":"git://github.com/AppFolioOnboarding/Li_Image_Share.git","ssh_url":"git@github.com:AppFolioOnboarding/Li_Image_Share.git","clone_url":"https://github.com/AppFolioOnboarding/Li_Image_Share.git","svn_url":"https://github.com/AppFolioOnboarding/Li_Image_Share","homepage":null,"size":91,"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":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/pulls/33"},"html":{"href":"https://github.com/AppFolioOnboarding/Li_Image_Share/pull/33"},"issue":{"href":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/issues/33"},"comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/AppFolioOnboarding/Li_Image_Share/statuses/2c4ec41b97d90578027d2a2f09764aea3cf934ef"}}}}