クライアント側で Ember-Data を使用し、サーバー側で Ruby を使用して、postgres SQL データベースからデータを取得しています。
サーバー側から行うApp.Person.findAll(App.Person)
と、ルビーハッシュオブジェクトの配列が返されます
今、私がそれを行うconsole.log(typeof App.Person.findAll(App.Person))
と、印刷されます'object'
でもハンドルバーとして使うと、
//Here I set in my ArrayController this.set('content', App.Person.findAll(App.Person));
{{#collection contentBinding="content"}}
Name: {{view.content.name}}
{{/collection}}
オブジェクトの配列を反復処理しているかのようにすべての名前を出力しますが、ember はオブジェクトを配列に変換しますか?