{"action":"opened","issue":{"url":"https://api.github.com/repos/balderdashy/sails/issues/2787","labels_url":"https://api.github.com/repos/balderdashy/sails/issues/2787/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/sails/issues/2787/comments","events_url":"https://api.github.com/repos/balderdashy/sails/issues/2787/events","html_url":"https://github.com/balderdashy/sails/issues/2787","id":64484224,"number":2787,"title":"Associations with REST routes not working","user":{"login":"cyrilchapon","id":10728426,"avatar_url":"https://avatars.githubusercontent.com/u/10728426?v=3","gravatar_id":"","url":"https://api.github.com/users/cyrilchapon","html_url":"https://github.com/cyrilchapon","followers_url":"https://api.github.com/users/cyrilchapon/followers","following_url":"https://api.github.com/users/cyrilchapon/following{/other_user}","gists_url":"https://api.github.com/users/cyrilchapon/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrilchapon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrilchapon/subscriptions","organizations_url":"https://api.github.com/users/cyrilchapon/orgs","repos_url":"https://api.github.com/users/cyrilchapon/repos","events_url":"https://api.github.com/users/cyrilchapon/events{/privacy}","received_events_url":"https://api.github.com/users/cyrilchapon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-26T09:53:40Z","updated_at":"2015-03-26T09:53:40Z","closed_at":null,"body":"Hello,\r\n\r\nWhen I try a \"[REST-populate](http://sailsjs.org/#!/documentation/reference/blueprint-api/Populate.html)\", or a \"[REST-addTo](http://sailsjs.org/#!/documentation/reference/blueprint-api/Add.html)\", that just doesn't work :\r\n\r\n**api/models/Pet.js**\r\n\r\n```\r\nmodule.exports = {\r\n  attributes: {\r\n    name:'STRING',\r\n    color:'STRING',\r\n    owner:{\r\n      model:'user'\r\n    }\r\n  }\r\n};\r\n```\r\n\r\n**api/models/User.js**\r\n\r\n```\r\nmodule.exports = {\r\n  attributes: {\r\n    name:'STRING',\r\n    age:'INTEGER',\r\n    pets:{\r\n      collection: 'pet',\r\n      via: 'owner'\r\n    }\r\n  }\r\n};\r\n```\r\n\r\n`GET /user/1/pets` is returning 404, with an existing *1* user"}}