Refactored to use ember-rails gem.