A simple Rails app for testing CRUD with ember.js and ember-data.js
Pull request Compare This branch is 135 commits behind dgeb:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
test
vendor
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
config.ru

README.md

Ember Data Example

This is a simple Rails 3.1 app created to try out Ember.js and the Data library recently created by the Ember.js team: https://github.com/emberjs/data

The app itself is a single-page Ember.js take on Rails CRUD scaffolding. It is one of several similar examples I'm creating to try out Ember.js and different persistence strategies.

Installation

Assuming Ruby 1.9.2+ with bundler gem installed:

$ bundle install
$ bundle exec rake db:migrate
$ rails s

Notes

This example uses the default adapter included with Ember Data, which doesn't include error handling.

The contact listing is initially loaded from data embedded in the html to improve performance (see app/views/contacts/index.html.erb).

Please help improve this example by filing issues and pull requests!

License

Copyright 2012 Dan Gebhardt. MIT License (see LICENSE for details).