{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/227","repository_url":"https://api.github.com/repos/ga-wdi-boston/capstone-project","labels_url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/227/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/227/events","html_url":"https://github.com/ga-wdi-boston/capstone-project/issues/227","id":169067813,"number":227,"title":"hasMany / belongsTo ember error","user":{"login":"MishaHerscu","id":5034266,"avatar_url":"https://avatars.githubusercontent.com/u/5034266?v=3","gravatar_id":"","url":"https://api.github.com/users/MishaHerscu","html_url":"https://github.com/MishaHerscu","followers_url":"https://api.github.com/users/MishaHerscu/followers","following_url":"https://api.github.com/users/MishaHerscu/following{/other_user}","gists_url":"https://api.github.com/users/MishaHerscu/gists{/gist_id}","starred_url":"https://api.github.com/users/MishaHerscu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MishaHerscu/subscriptions","organizations_url":"https://api.github.com/users/MishaHerscu/orgs","repos_url":"https://api.github.com/users/MishaHerscu/repos","events_url":"https://api.github.com/users/MishaHerscu/events{/privacy}","received_events_url":"https://api.github.com/users/MishaHerscu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-08-03T07:40:16Z","updated_at":"2016-08-03T16:36:09Z","closed_at":null,"body":"Hey guys,\r\n\r\nthis is the situation:\r\n\r\nI am getting the following error in my console and there is nothing rendered in the relevant div on my page when I navigate to the route in question.\r\n\r\n`TypeError: Cannot read property 'some' of undefined`\r\n\r\nI am not really sure where to go from with that error.\r\n\r\nMy code:\r\n\r\nI have cities which have attractions.\r\n\r\nIn my rails back end, the relationship looks like this:\r\n\r\nmodels:\r\n\r\n```\r\n# Attraction Model\r\nclass Attraction < ActiveRecord::Base\r\n  has_many :attraction_tags, inverse_of: :attraction, dependent: :destroy\r\n  has_many :attraction_suggestions, inverse_of: :attraction, dependent: :destroy\r\n  has_many :user_attractions, inverse_of: :attraction, dependent: :destroy\r\n  belongs_to :city, inverse_of: :attractions\r\nend\r\n```\r\n\r\n```\r\n# City Model\r\nclass City < ActiveRecord::Base\r\n  has_many :attractions, inverse_of: :city, dependent: :destroy\r\n  has_many :trips, inverse_of: :city, dependent: :destroy\r\nend\r\n```\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/comments/237291700","html_url":"https://github.com/ga-wdi-boston/capstone-project/issues/227#issuecomment-237291700","issue_url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/227","id":237291700,"user":{"login":"jrhorn424","id":388761,"avatar_url":"https://avatars.githubusercontent.com/u/388761?v=3","gravatar_id":"","url":"https://api.github.com/users/jrhorn424","html_url":"https://github.com/jrhorn424","followers_url":"https://api.github.com/users/jrhorn424/followers","following_url":"https://api.github.com/users/jrhorn424/following{/other_user}","gists_url":"https://api.github.com/users/jrhorn424/gists{/gist_id}","starred_url":"https://api.github.com/users/jrhorn424/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrhorn424/subscriptions","organizations_url":"https://api.github.com/users/jrhorn424/orgs","repos_url":"https://api.github.com/users/jrhorn424/repos","events_url":"https://api.github.com/users/jrhorn424/events{/privacy}","received_events_url":"https://api.github.com/users/jrhorn424/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T16:36:09Z","updated_at":"2016-08-03T16:36:09Z","body":"@MishaHerscu Follow @lcurran's advice and let me know if you get a more helpful error message. If you debug the issue, please let us know how you resolved it and close the issue."}}
{"actor":{"display_login":"jrhorn424"}}