Emberjs data store example

Tyler Graf picture Tyler Graf · Feb 2, 2012 · Viewed 6.9k times · Source

I'm new to emberjs as well as JavaScript MVC frameworks.

I'm looking through the documentation in https://github.com/emberjs/data but I can't seem to get mine to work properly. Is there an example of a data store setup getting and posting to a RESTapi?

Answer

dhenze picture dhenze · Feb 3, 2012

there is a tutorial linked in the emberjs wiki that uses another library for RESTful communication with Rails: https://github.com/emberjs/ember.js/wiki/Links

I have used the old sproutcore-datastore ( back in the Sproutcore 2 days... ;-) ) along a very nice post from Peter Wagenet on the Sproutcore blog: http://blog.sproutcore.com/sproutcore-2-and-ajax/ - it again is not ember-data, but concepts should be similar and the sproutcore-datastore still exists as an addon: https://github.com/emberjs-addons/sproutcore-datastore

It is not exactly what you are looking for, but hope it may help.