Ember Data provides a central Data Store, which can be configured with a range of provided Adapters, but two core Adapters are provided: the RESTAdapter and BasicAdapter.
The RESTAdapter is configured for use by default. You can read more about it in the Guides. It provides a fully RESTful mechanism for communicating with your persistence layer, and is the preferred and recommened choice for use with Ember Data.
The BasicAdapter is intended to provide a way for developers who want full control over how the persistence layer is communicated with via their own implemented Ajax hooks
This is definitely alpha-quality. The basics of RESTAdapter work, but there are for sure edge cases that are not yet handled. Please report any bugs or feature requests, and pull requests are always welcome. The BasicAdapter is under heavy development at present.
Is It Good?
Is It "Production Ready™"?
No. The API should not be considered stable until 1.0. Breaking changes,
indexed by date, are listed in
A guide is provided on the Ember.js site that is accurate as of revision 12.
The latest passing build from the "master" branch is available on builds.emberjs.com:
You also have the option to build ember-data.js yourself. Clone the repository, run
rake dist. You'll find ember-data.js in the
- Handle error states
- Better built-in attributes
- Editing "forked" records
- Out-of-the-box support for Rails apps that follow the
- Handle partially-loaded records
How to Run Unit Tests
Install Ruby 1.9.2+. There are many resources on the web can help; one of the best is rvm.
gem install bundler
bundleinside the project root to install the gem dependencies.
In Your Browser
To start the development server, run
PACKAGE_NAMEwith the name of the package you want to run. For example:
To run multiple packages, you can separate them with commas. You can run all the tests using the
You can also pass
jquery=VERSION in the test URL to test different versions of jQuery. Default is 1.9.0.
From the CLI
Install phantomjs from http://phantomjs.org
rake testto run a basic test suite or run
rake test[all]to run a more comprehensive suite.
(Mac OS X Only) Run
rake autotestto automatically re-run tests when any files are changed.