EmberJS chat example, It might be teach you how to use ember-data with simple relation.