{"action":"closed","issue":{"url":"https://api.github.com/repos/ga-wdi-exercises/project4/issues/281","repository_url":"https://api.github.com/repos/ga-wdi-exercises/project4","labels_url":"https://api.github.com/repos/ga-wdi-exercises/project4/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-exercises/project4/issues/281/comments","events_url":"https://api.github.com/repos/ga-wdi-exercises/project4/issues/281/events","html_url":"https://github.com/ga-wdi-exercises/project4/issues/281","id":170647040,"number":281,"title":"Many-to-Many","user":{"login":"adina-pollack","id":18648382,"avatar_url":"https://avatars.githubusercontent.com/u/18648382?v=3","gravatar_id":"","url":"https://api.github.com/users/adina-pollack","html_url":"https://github.com/adina-pollack","followers_url":"https://api.github.com/users/adina-pollack/followers","following_url":"https://api.github.com/users/adina-pollack/following{/other_user}","gists_url":"https://api.github.com/users/adina-pollack/gists{/gist_id}","starred_url":"https://api.github.com/users/adina-pollack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adina-pollack/subscriptions","organizations_url":"https://api.github.com/users/adina-pollack/orgs","repos_url":"https://api.github.com/users/adina-pollack/repos","events_url":"https://api.github.com/users/adina-pollack/events{/privacy}","received_events_url":"https://api.github.com/users/adina-pollack/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ga-wdi-exercises/project4/labels/waiting-on-student-response","name":"waiting-on-student-response","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-11T13:34:44Z","updated_at":"2016-08-11T14:01:04Z","closed_at":"2016-08-11T14:01:04Z","body":"https://github.com/adina-pollack/travel\r\ndevise branch\r\n\r\nMy many-to-many relationship is working - when I create a user w/ location, a destination is created with the location_id and the user_id. In my user show.html.erb page I'm trying to reference the location the user chose when they signed up. \r\n \r\nso far I've tried \r\n```\r\n@current_user.location\r\n```\r\n```\r\n@current_user.location.country\r\n```\r\n```\r\n@current_user.destinations.location\r\n```\r\n```\r\nDestination.location \r\n```\r\nand probably some others along the way. What's the best way to get to the locations country value. \r\n"}}
{"actor":{"display_login":"jshawl"}}