Let's say that in my backend I have models Dealer and Car, both are connected with ManyToMany relation also in Ember. I can create relations manually in backend and then while displaying it with Ember views I can easily display that Dealer X has Car 1, Car 2 and Car 3 in his offer. Also when displaying the Car I can display all Dealers who contains the Car model.
Now I need to add some editing possibility, I mean that for an example when I'm editing the Car I'd like to choose the Dealers who has this Car in his offer. (I need the possibility of such edit only for one side of relation - not both, so just can accept that Im able to add Dealers to Cars but don't need to do that in the opposite direction (that's exactly how my background is working)
So in App.CarController I created an actions like addDealerToCar and deleteDealerFromCar and they sends proper queries to backend which saves the relations.
Question is: how can I make some field, which will allow me to choose the Dealer ie. using a selectbox or other dropdown and then call an action which will send in to backend?