How to create has_and_belongs_to_many relationship with Ember.js & ember-data?

Viewed 2006

Is it possible to create a hasAndBelongsToMany relationship with Ember.js & ember-data?

Edit: Added ActiveRecord model examples to clarify.

class Project < ActiveRecord::Base
  has_and_belongs_to_many :tags
end

class Tag < ActiveRecord::Base
  has_and_belongs_to_many :projects
end

I have an associative table "projects_tags" linking project_id <=> tag_id.

1 Answers
Related