{"action":"created","comment":{"url":"https://api.github.com/repos/tjmasterson/SoberSocial/pulls/comments/31813966","id":31813966,"diff_hunk":"@@ -1,8 +1,11 @@\n class HomeController < ApplicationController\n-  before_filter :authenticate_user!\n-\n+  # before_filter :authenticate_user!\n   def index\n-    @event = Event.first\n+    @ip = request.remote_ip\n+    @user_location = Geokit::Geocoders::MultiGeocoder.geocode(\"184.154.83.119\")\n+    @events = Event.within(3, :origin => @user_location.ll)\n+    @locations = []\n+    @events.each { |event| @locations << [event.lat, event.lng, event.title] }","path":"app/controllers/home_controller.rb","position":11,"original_position":11,"commit_id":"3ff1a6c8702e50ab0d0c63fb61142433ecedf09e","original_commit_id":"3ff1a6c8702e50ab0d0c63fb61142433ecedf09e","user":{"login":"tjmasterson","id":2007726,"avatar_url":"https://avatars.githubusercontent.com/u/2007726?v=3","gravatar_id":"","url":"https://api.github.com/users/tjmasterson","html_url":"https://github.com/tjmasterson","followers_url":"https://api.github.com/users/tjmasterson/followers","following_url":"https://api.github.com/users/tjmasterson/following{/other_user}","gists_url":"https://api.github.com/users/tjmasterson/gists{/gist_id}","starred_url":"https://api.github.com/users/tjmasterson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjmasterson/subscriptions","organizations_url":"https://api.github.com/users/tjmasterson/orgs","repos_url":"https://api.github.com/users/tjmasterson/repos","events_url":"https://api.github.com/users/tjmasterson/events{/privacy}","received_events_url":"https://api.github.com/users/tjmasterson/received_events","type":"User","site_admin":false},"body":"Everything looks good! I think we should find a way to associate the location with the event rather then creating a new array with the lat long and event title. It feels better to be able to have all the event attributes associated with the object as opposed to isolating the lat and long. Looking into it now...","created_at":"2015-06-05T13:54:26Z","updated_at":"2015-06-05T13:54:26Z","html_url":"https://github.com/tjmasterson/SoberSocial/pull/5#discussion_r31813966","pull_request_url":"https://api.github.com/repos/tjmasterson/SoberSocial/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/tjmasterson/SoberSocial/pulls/comments/31813966"},"html":{"href":"https://github.com/tjmasterson/SoberSocial/pull/5#discussion_r31813966"},"pull_request":{"href":"https://api.github.com/repos/tjmasterson/SoberSocial/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/tjmasterson/SoberSocial/pulls/5","id":37002614,"html_url":"https://github.com/tjmasterson/SoberSocial/pull/5","diff_url":"https://github.com/tjmasterson/SoberSocial/pull/5.diff","patch_url":"https://github.com/tjmasterson/SoberSocial/pull/5.patch","issue_url":"https://api.github.com/repos/tjmasterson/SoberSocial/issues/5","number":5,"state":"open","locked":false,"title":"Better maps","user":{"login":"b0xw00d","id":8496087,"avatar_url":"https://avatars.githubusercontent.com/u/8496087?v=3","gravatar_id":"","url":"https://api.github.com/users/b0xw00d","html_url":"https://github.com/b0xw00d","followers_url":"https://api.github.com/users/b0xw00d/followers","following_url":"https://api.github.com/users/b0xw00d/following{/other_user}","gists_url":"https://api.github.com/users/b0xw00d/gists{/gist_id}","starred_url":"https://api.github.com/users/b0xw00d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b0xw00d/subscriptions","organizations_url":"https://api.github.com/users/b0xw00d/orgs","repos_url":"https://api.github.com/users/b0xw00d/repos","events_url":"https://api.github.com/users/b0xw00d/events{/privacy}","received_events_url":"https://api.github.com/users/b0xw00d/received_events","type":"User","site_admin":false},"body":"just need to put links to the events on all the markers.  other than that, maps are done.  :dart: ","created_at":"2015-06-05T05:45:44Z","updated_at":"2015-06-05T13:54:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4880adb88963ed0936e479a40a9391bc540c12ad","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tjmasterson/SoberSocial/pulls/5/commits","review_comments_url":"https://api.github.com/repos/tjmasterson/SoberSocial/pulls/5/comments","review_comment_url":"https://api.github.com/repos/tjmasterson/SoberSocial/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tjmasterson/SoberSocial/issues/5/comments","statuses_url":"https://api.github.com/repos/tjmasterson/SoberSocial/statuses/3ff1a6c8702e50ab0d0c63fb61142433ecedf09e","head":{"label":"tjmasterson:better_maps","ref":"better_maps","sha":"3ff1a6c8702e50ab0d0c63fb61142433ecedf09e","user":{"login":"tjmasterson","id":2007726,"avatar_url":"https://avatars.githubusercontent.com/u/2007726?v=3","gravatar_id":"","url":"https://api.github.com/users/tjmasterson","html_url":"https://github.com/tjmasterson","followers_url":"https://api.github.com/users/tjmasterson/followers","following_url":"https://api.github.com/users/tjmasterson/following{/other_user}","gists_url":"https://api.github.com/users/tjmasterson/gists{/gist_id}","starred_url":"https://api.github.com/users/tjmasterson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjmasterson/subscriptions","organizations_url":"https://api.github.com/users/tjmasterson/orgs","repos_url":"https://api.github.com/users/tjmasterson/repos","events_url":"https://api.github.com/users/tjmasterson/events{/privacy}","received_events_url":"https://api.github.com/users/tjmasterson/received_events","type":"User","site_admin":false},"repo":{"id":36816178,"name":"SoberSocial","full_name":"tjmasterson/SoberSocial","owner":{"login":"tjmasterson","id":2007726,"avatar_url":"https://avatars.githubusercontent.com/u/2007726?v=3","gravatar_id":"","url":"https://api.github.com/users/tjmasterson","html_url":"https://github.com/tjmasterson","followers_url":"https://api.github.com/users/tjmasterson/followers","following_url":"https://api.github.com/users/tjmasterson/following{/other_user}","gists_url":"https://api.github.com/users/tjmasterson/gists{/gist_id}","starred_url":"https://api.github.com/users/tjmasterson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjmasterson/subscriptions","organizations_url":"https://api.github.com/users/tjmasterson/orgs","repos_url":"https://api.github.com/users/tjmasterson/repos","events_url":"https://api.github.com/users/tjmasterson/events{/privacy}","received_events_url":"https://api.github.com/users/tjmasterson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tjmasterson/SoberSocial","description":"Create and find sober social events today.","fork":false,"url":"https://api.github.com/repos/tjmasterson/SoberSocial","forks_url":"https://api.github.com/repos/tjmasterson/SoberSocial/forks","keys_url":"https://api.github.com/repos/tjmasterson/SoberSocial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tjmasterson/SoberSocial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tjmasterson/SoberSocial/teams","hooks_url":"https://api.github.com/repos/tjmasterson/SoberSocial/hooks","issue_events_url":"https://api.github.com/repos/tjmasterson/SoberSocial/issues/events{/number}","events_url":"https://api.github.com/repos/tjmasterson/SoberSocial/events","assignees_url":"https://api.github.com/repos/tjmasterson/SoberSocial/assignees{/user}","branches_url":"https://api.github.com/repos/tjmasterson/SoberSocial/branches{/branch}","tags_url":"https://api.github.com/repos/tjmasterson/SoberSocial/tags","blobs_url":"https://api.github.com/repos/tjmasterson/SoberSocial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tjmasterson/SoberSocial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tjmasterson/SoberSocial/git/refs{/sha}","trees_url":"https://api.github.com/repos/tjmasterson/SoberSocial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tjmasterson/SoberSocial/statuses/{sha}","languages_url":"https://api.github.com/repos/tjmasterson/SoberSocial/languages","stargazers_url":"https://api.github.com/repos/tjmasterson/SoberSocial/stargazers","contributors_url":"https://api.github.com/repos/tjmasterson/SoberSocial/contributors","subscribers_url":"https://api.github.com/repos/tjmasterson/SoberSocial/subscribers","subscription_url":"https://api.github.com/repos/tjmasterson/SoberSocial/subscription","commits_url":"https://api.github.com/repos/tjmasterson/SoberSocial/commits{/sha}","git_commits_url":"https://api.github.com/repos/tjmasterson/SoberSocial/git/commits{/sha}","comments_url":"https://api.github.com/repos/tjmasterson/SoberSocial/comments{/number}","issue_comment_url":"https://api.github.com/repos/tjmasterson/SoberSocial/issues/comments{/number}","contents_url":"https://api.github.com/repos/tjmasterson/SoberSocial/contents/{+path}","compare_url":"https://api.github.com/repos/tjmasterson/SoberSocial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tjmasterson/SoberSocial/merges","archive_url":"https://api.github.com/repos/tjmasterson/SoberSocial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tjmasterson/SoberSocial/downloads","issues_url":"https://api.github.com/repos/tjmasterson/SoberSocial/issues{/number}","pulls_url":"https://api.github.com/repos/tjmasterson/SoberSocial/pulls{/number}","milestones_url":"https://api.github.com/repos/tjmasterson/SoberSocial/milestones{/number}","notifications_url":"https://api.github.com/repos/tjmasterson/SoberSocial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tjmasterson/SoberSocial/labels{/name}","releases_url":"https://api.github.com/repos/tjmasterson/SoberSocial/releases{/id}","created_at":"2015-06-03T16:28:38Z","updated_at":"2015-06-03T16:51:45Z","pushed_at":"2015-06-05T06:09:33Z","git_url":"git://github.com/tjmasterson/SoberSocial.git","ssh_url":"git@github.com:tjmasterson/SoberSocial.git","clone_url":"https://github.com/tjmasterson/SoberSocial.git","svn_url":"https://github.com/tjmasterson/SoberSocial","homepage":null,"size":0,"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":"tjmasterson:development","ref":"development","sha":"1441c7a68859ac7e6b0bc7cd207edfce190dfc26","user":{"login":"tjmasterson","id":2007726,"avatar_url":"https://avatars.githubusercontent.com/u/2007726?v=3","gravatar_id":"","url":"https://api.github.com/users/tjmasterson","html_url":"https://github.com/tjmasterson","followers_url":"https://api.github.com/users/tjmasterson/followers","following_url":"https://api.github.com/users/tjmasterson/following{/other_user}","gists_url":"https://api.github.com/users/tjmasterson/gists{/gist_id}","starred_url":"https://api.github.com/users/tjmasterson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjmasterson/subscriptions","organizations_url":"https://api.github.com/users/tjmasterson/orgs","repos_url":"https://api.github.com/users/tjmasterson/repos","events_url":"https://api.github.com/users/tjmasterson/events{/privacy}","received_events_url":"https://api.github.com/users/tjmasterson/received_events","type":"User","site_admin":false},"repo":{"id":36816178,"name":"SoberSocial","full_name":"tjmasterson/SoberSocial","owner":{"login":"tjmasterson","id":2007726,"avatar_url":"https://avatars.githubusercontent.com/u/2007726?v=3","gravatar_id":"","url":"https://api.github.com/users/tjmasterson","html_url":"https://github.com/tjmasterson","followers_url":"https://api.github.com/users/tjmasterson/followers","following_url":"https://api.github.com/users/tjmasterson/following{/other_user}","gists_url":"https://api.github.com/users/tjmasterson/gists{/gist_id}","starred_url":"https://api.github.com/users/tjmasterson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjmasterson/subscriptions","organizations_url":"https://api.github.com/users/tjmasterson/orgs","repos_url":"https://api.github.com/users/tjmasterson/repos","events_url":"https://api.github.com/users/tjmasterson/events{/privacy}","received_events_url":"https://api.github.com/users/tjmasterson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tjmasterson/SoberSocial","description":"Create and find sober social events today.","fork":false,"url":"https://api.github.com/repos/tjmasterson/SoberSocial","forks_url":"https://api.github.com/repos/tjmasterson/SoberSocial/forks","keys_url":"https://api.github.com/repos/tjmasterson/SoberSocial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tjmasterson/SoberSocial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tjmasterson/SoberSocial/teams","hooks_url":"https://api.github.com/repos/tjmasterson/SoberSocial/hooks","issue_events_url":"https://api.github.com/repos/tjmasterson/SoberSocial/issues/events{/number}","events_url":"https://api.github.com/repos/tjmasterson/SoberSocial/events","assignees_url":"https://api.github.com/repos/tjmasterson/SoberSocial/assignees{/user}","branches_url":"https://api.github.com/repos/tjmasterson/SoberSocial/branches{/branch}","tags_url":"https://api.github.com/repos/tjmasterson/SoberSocial/tags","blobs_url":"https://api.github.com/repos/tjmasterson/SoberSocial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tjmasterson/SoberSocial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tjmasterson/SoberSocial/git/refs{/sha}","trees_url":"https://api.github.com/repos/tjmasterson/SoberSocial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tjmasterson/SoberSocial/statuses/{sha}","languages_url":"https://api.github.com/repos/tjmasterson/SoberSocial/languages","stargazers_url":"https://api.github.com/repos/tjmasterson/SoberSocial/stargazers","contributors_url":"https://api.github.com/repos/tjmasterson/SoberSocial/contributors","subscribers_url":"https://api.github.com/repos/tjmasterson/SoberSocial/subscribers","subscription_url":"https://api.github.com/repos/tjmasterson/SoberSocial/subscription","commits_url":"https://api.github.com/repos/tjmasterson/SoberSocial/commits{/sha}","git_commits_url":"https://api.github.com/repos/tjmasterson/SoberSocial/git/commits{/sha}","comments_url":"https://api.github.com/repos/tjmasterson/SoberSocial/comments{/number}","issue_comment_url":"https://api.github.com/repos/tjmasterson/SoberSocial/issues/comments{/number}","contents_url":"https://api.github.com/repos/tjmasterson/SoberSocial/contents/{+path}","compare_url":"https://api.github.com/repos/tjmasterson/SoberSocial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tjmasterson/SoberSocial/merges","archive_url":"https://api.github.com/repos/tjmasterson/SoberSocial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tjmasterson/SoberSocial/downloads","issues_url":"https://api.github.com/repos/tjmasterson/SoberSocial/issues{/number}","pulls_url":"https://api.github.com/repos/tjmasterson/SoberSocial/pulls{/number}","milestones_url":"https://api.github.com/repos/tjmasterson/SoberSocial/milestones{/number}","notifications_url":"https://api.github.com/repos/tjmasterson/SoberSocial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tjmasterson/SoberSocial/labels{/name}","releases_url":"https://api.github.com/repos/tjmasterson/SoberSocial/releases{/id}","created_at":"2015-06-03T16:28:38Z","updated_at":"2015-06-03T16:51:45Z","pushed_at":"2015-06-05T06:09:33Z","git_url":"git://github.com/tjmasterson/SoberSocial.git","ssh_url":"git@github.com:tjmasterson/SoberSocial.git","clone_url":"https://github.com/tjmasterson/SoberSocial.git","svn_url":"https://github.com/tjmasterson/SoberSocial","homepage":null,"size":0,"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/tjmasterson/SoberSocial/pulls/5"},"html":{"href":"https://github.com/tjmasterson/SoberSocial/pull/5"},"issue":{"href":"https://api.github.com/repos/tjmasterson/SoberSocial/issues/5"},"comments":{"href":"https://api.github.com/repos/tjmasterson/SoberSocial/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/tjmasterson/SoberSocial/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/tjmasterson/SoberSocial/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tjmasterson/SoberSocial/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/tjmasterson/SoberSocial/statuses/3ff1a6c8702e50ab0d0c63fb61142433ecedf09e"}}}}