We are having schemaless database on MongoDB in Rails. I want to know how to use such a schemaless emberjs data design to integrate with such a design.
I am not able to find any documentation on if this can be achieved or if there is any best practice
Puede alguien ayudarme con esto ?
EDIT: Question is on how to use EmberJS persistent datastore for a schemaless MongoDB Rails backend.
preguntado el 28 de agosto de 12 a las 10:08
The first two links below should help. See how the first link is setting primaryKey: '_id' to recognize mongodb _id and the second link shows how to make active_model_serializer gem work with mongoide, the gem is ember-core team's recommended gem for working with rails and ember-data :
If you run into problems with embedded mongodb documents and ember-data, this should solve it:
Read the link below and also examine the github project:
This is not using rails but nodejs, mongodb and emberjs. The mongodb + emberjs might still be useful to you
There is still no clear and scalable solution I see of how to apply Ember to scenario where the Rails backend database like MongoDB stores document of any depth with unknown fields.
There are some ways of normalizing but still with existing REST/REST+DS we may have to write a lot of code to serialize and de serialize.
Take a peek on the discussions:
If some one finds a better pick, please share with me.