User registrations, ember-data, multiple models


#1

I have a fundamental question in terms of how to handle new user registrations with ember and ember-data. Given that ember is opinionated there’s likely a single way to implement.

User registrations aren’t as simple as providing a username and password, which most tutorials show. Some require billing details, contact details, etc. These would be typically represented by multiple models on the server side, but likely a single server controller that aggregates. On the ember side of the fence how would the multi model, ember-data, build up the record to be sent to the server?

Should I just create a registration/signup ember route and replicate the models as they are on the server in ember data? Then collect the details from forum inputs and craft the ember data request and save it back to the server via the registration route/controller?