{"action":"created","comment":{"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/comments/69834002","id":69834002,"diff_hunk":"@@ -1,6 +1,11 @@\n class ImagesController < ApplicationController\n   def index\n-    @all_images = Image.order('created_at DESC')\n+    if params[:tag]\n+      @tag = params[:tag]\n+      @all_images = Image.tagged_with(@tag, :any => true)\n+    else\n+      @all_images = Image.order('created_at DESC')\n+    end","path":"app/controllers/images_controller.rb","position":9,"original_position":9,"commit_id":"9f4999a73d6712422f2c31374389aad6deef101e","original_commit_id":"4ad3f9321a0012d0eac7f1c86a2897ecc71f46e0","user":{"login":"lightbright","id":6063967,"avatar_url":"https://avatars.githubusercontent.com/u/6063967?v=3","gravatar_id":"","url":"https://api.github.com/users/lightbright","html_url":"https://github.com/lightbright","followers_url":"https://api.github.com/users/lightbright/followers","following_url":"https://api.github.com/users/lightbright/following{/other_user}","gists_url":"https://api.github.com/users/lightbright/gists{/gist_id}","starred_url":"https://api.github.com/users/lightbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightbright/subscriptions","organizations_url":"https://api.github.com/users/lightbright/orgs","repos_url":"https://api.github.com/users/lightbright/repos","events_url":"https://api.github.com/users/lightbright/events{/privacy}","received_events_url":"https://api.github.com/users/lightbright/received_events","type":"User","site_admin":false},"body":"OH, right. added. ","created_at":"2016-07-07T00:13:29Z","updated_at":"2016-07-07T00:13:29Z","html_url":"https://github.com/AppFolioOnboarding/image-sharer-lightbright/pull/35#discussion_r69834002","pull_request_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/comments/69834002"},"html":{"href":"https://github.com/AppFolioOnboarding/image-sharer-lightbright/pull/35#discussion_r69834002"},"pull_request":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/35","id":75015844,"html_url":"https://github.com/AppFolioOnboarding/image-sharer-lightbright/pull/35","diff_url":"https://github.com/AppFolioOnboarding/image-sharer-lightbright/pull/35.diff","patch_url":"https://github.com/AppFolioOnboarding/image-sharer-lightbright/pull/35.patch","issue_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues/35","number":35,"state":"open","locked":false,"title":"Add tag lookup support ","user":{"login":"lightbright","id":6063967,"avatar_url":"https://avatars.githubusercontent.com/u/6063967?v=3","gravatar_id":"","url":"https://api.github.com/users/lightbright","html_url":"https://github.com/lightbright","followers_url":"https://api.github.com/users/lightbright/followers","following_url":"https://api.github.com/users/lightbright/following{/other_user}","gists_url":"https://api.github.com/users/lightbright/gists{/gist_id}","starred_url":"https://api.github.com/users/lightbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightbright/subscriptions","organizations_url":"https://api.github.com/users/lightbright/orgs","repos_url":"https://api.github.com/users/lightbright/repos","events_url":"https://api.github.com/users/lightbright/events{/privacy}","received_events_url":"https://api.github.com/users/lightbright/received_events","type":"User","site_admin":false},"body":"Closes #9 \r\n","created_at":"2016-06-23T19:49:28Z","updated_at":"2016-07-07T00:13:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c717bde502633b89e08a926471f91241300f903d","assignee":{"login":"Santhanaraman","id":13837247,"avatar_url":"https://avatars.githubusercontent.com/u/13837247?v=3","gravatar_id":"","url":"https://api.github.com/users/Santhanaraman","html_url":"https://github.com/Santhanaraman","followers_url":"https://api.github.com/users/Santhanaraman/followers","following_url":"https://api.github.com/users/Santhanaraman/following{/other_user}","gists_url":"https://api.github.com/users/Santhanaraman/gists{/gist_id}","starred_url":"https://api.github.com/users/Santhanaraman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Santhanaraman/subscriptions","organizations_url":"https://api.github.com/users/Santhanaraman/orgs","repos_url":"https://api.github.com/users/Santhanaraman/repos","events_url":"https://api.github.com/users/Santhanaraman/events{/privacy}","received_events_url":"https://api.github.com/users/Santhanaraman/received_events","type":"User","site_admin":false},"assignees":[{"login":"Santhanaraman","id":13837247,"avatar_url":"https://avatars.githubusercontent.com/u/13837247?v=3","gravatar_id":"","url":"https://api.github.com/users/Santhanaraman","html_url":"https://github.com/Santhanaraman","followers_url":"https://api.github.com/users/Santhanaraman/followers","following_url":"https://api.github.com/users/Santhanaraman/following{/other_user}","gists_url":"https://api.github.com/users/Santhanaraman/gists{/gist_id}","starred_url":"https://api.github.com/users/Santhanaraman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Santhanaraman/subscriptions","organizations_url":"https://api.github.com/users/Santhanaraman/orgs","repos_url":"https://api.github.com/users/Santhanaraman/repos","events_url":"https://api.github.com/users/Santhanaraman/events{/privacy}","received_events_url":"https://api.github.com/users/Santhanaraman/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/35/commits","review_comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/35/comments","review_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues/35/comments","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/statuses/9f4999a73d6712422f2c31374389aad6deef101e","head":{"label":"AppFolioOnboarding:ImgFindByTag","ref":"ImgFindByTag","sha":"9f4999a73d6712422f2c31374389aad6deef101e","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":61061791,"name":"image-sharer-lightbright","full_name":"AppFolioOnboarding/image-sharer-lightbright","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/image-sharer-lightbright","description":"image-sharer-lightbright created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright","forks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/deployments","created_at":"2016-06-13T18:55:47Z","updated_at":"2016-06-13T18:55:53Z","pushed_at":"2016-07-07T00:07:27Z","git_url":"git://github.com/AppFolioOnboarding/image-sharer-lightbright.git","ssh_url":"git@github.com:AppFolioOnboarding/image-sharer-lightbright.git","clone_url":"https://github.com/AppFolioOnboarding/image-sharer-lightbright.git","svn_url":"https://github.com/AppFolioOnboarding/image-sharer-lightbright","homepage":null,"size":149,"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":"AppFolioOnboarding:master","ref":"master","sha":"bb78a16e07be6fbd934f668ebb69cbe5ffa4548d","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":61061791,"name":"image-sharer-lightbright","full_name":"AppFolioOnboarding/image-sharer-lightbright","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/image-sharer-lightbright","description":"image-sharer-lightbright created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright","forks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/deployments","created_at":"2016-06-13T18:55:47Z","updated_at":"2016-06-13T18:55:53Z","pushed_at":"2016-07-07T00:07:27Z","git_url":"git://github.com/AppFolioOnboarding/image-sharer-lightbright.git","ssh_url":"git@github.com:AppFolioOnboarding/image-sharer-lightbright.git","clone_url":"https://github.com/AppFolioOnboarding/image-sharer-lightbright.git","svn_url":"https://github.com/AppFolioOnboarding/image-sharer-lightbright","homepage":null,"size":149,"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/AppFolioOnboarding/image-sharer-lightbright/pulls/35"},"html":{"href":"https://github.com/AppFolioOnboarding/image-sharer-lightbright/pull/35"},"issue":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues/35"},"comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/statuses/9f4999a73d6712422f2c31374389aad6deef101e"}}}}
{"actor":{"display_login":"lightbright"}}