{"action":"opened","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/132","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/132/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/132/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/132/events","html_url":"https://github.com/ga-wdi-boston/capstone-project/issues/132","id":146406816,"number":132,"title":"Loading related models issue","user":{"login":"dumplingpuff","id":14882368,"avatar_url":"https://avatars.githubusercontent.com/u/14882368?v=3","gravatar_id":"","url":"https://api.github.com/users/dumplingpuff","html_url":"https://github.com/dumplingpuff","followers_url":"https://api.github.com/users/dumplingpuff/followers","following_url":"https://api.github.com/users/dumplingpuff/following{/other_user}","gists_url":"https://api.github.com/users/dumplingpuff/gists{/gist_id}","starred_url":"https://api.github.com/users/dumplingpuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumplingpuff/subscriptions","organizations_url":"https://api.github.com/users/dumplingpuff/orgs","repos_url":"https://api.github.com/users/dumplingpuff/repos","events_url":"https://api.github.com/users/dumplingpuff/events{/privacy}","received_events_url":"https://api.github.com/users/dumplingpuff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-06T19:14:29Z","updated_at":"2016-04-06T19:14:29Z","closed_at":null,"body":"So far I have a dynamic segment view for each trip model, but I am trying to load items onto the trip template.\r\n\r\n```\r\n// trip model\r\nimport DS from 'ember-data';\r\n\r\nexport default DS.Model.extend({\r\n  title: DS.attr('string'),\r\n  location: DS.attr('string'),\r\n  arrival: DS.attr('date'),\r\n  departure: DS.attr('date'),\r\n  description: DS.attr('string'),\r\n\r\n  items: DS.hasMany('item', { async: true }),\r\n  users: DS.hasMany('user', { async: true })\r\n});\r\n```\r\n\r\nThis is what the model in the Trip route looks like\r\n```\r\n  model (params) {\r\n    return this.store.findRecord('trip', params.trip_id);\r\n  },\r\n```\r\n\r\nThe relationship in the backend has many items so I was expecting that if I called model.items I could at least access the items from each trip.  I am unsure if this is a back end issue or a data connection issue on ember.  Let me know if you need to have more information provided.  Thanks in advance."}}