Ember の RESTAdapter は、JSON 応答が L4 Eloquent のデフォルト コレクションとは少し異なる方法で編成されることを想定しています。
Emberガイドから:
{
"post": {
"id": 1,
"title": "Rails is omakase",
"comment_ids": [1, 2, 3]
},
"comments": [{
"id": 1,
"body": "But is it _lightweight_ omakase?"
},
{
"id": 2,
"body": "I for one welcome our new omakase overlords"
},
{
"id": 3,
"body": "Put me on the fast track to a delicious dinner"
}]
}
Ember を L4 コレクションにマップする方法はありますか?