I am using ember with rails, and I have not had success trying to pass the parent_id param to get items from a database using the parent_id. The only way i have been able to retrieve has_many items of a belongs_to resource has been to have the parent model serializer return the has_manies. Does Ember require sending both the belongs_to model instance and the has_many model instances in a single get request?
Asked
Active
Viewed 99 times
1 Answers
0
This should work. There was a bug that has been fixed ( https://github.com/Cyril-sf/data/commit/b113815dadb289b635065742faaf001be56dde77 ). Maybe you need to update ember data.

Cyril Fluck
- 1,561
- 7
- 9
-
Thanks, I'll check it out. Is there also documentation for this somewhere? – Kyrie Apr 27 '13 at 07:13