Over the past few hours I’ve been fighting against ember-data to save a many-to-many relationship with ActiveModelSerializer to my Rails 4 app. I’ve gotten it to work after browsing through a number of other peoples code and seeing what they have done. This issue has been talked about a ton it seems, but I still had to struggle a bit to get my case to work. So I thought I’d share what I ended up with to see if it’s correct and possibly to help others who’re having a difficult time.