Hacker News new | past | comments | ask | show | jobs | submit login

While there is quite a deal of information on integrating ember-data with rails, there is much less on integrating it with other server-side MVC/REST frameworks.

This means that using it with another framework often means modifying that interaction pattern to be more like how rails views ajax, complete with the root objects ({"model":{}}).

This may more accurately apply to the REST driver in ember-data, but that is quite tightly coupled with the rest of it.




That's def a job for the adapters. Django, for instance, has a REST adapter that has been worked on here: https://github.com/toranb/ember-data-django-rest-adapter

As far as the root objects are concerned, I've always been a fan of that part of Rails. Not to say that it cannot be easily gotten rid of with something like this (for ActiveResource)...

ActiveResource::Base.include_root_in_json = false

Or, like in my example app, with this (for ActiveModelSerializers)...

https://github.com/rails-api/active_model_serializers#1-disa...




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: