In a recent project, I put together Rails API backend and a Ember CLI frontend for one of my awesome clients. With Rails5, Devise, and Ember Simple Auth Devise it's a beaut of a project; Being both a pleasure to work in as well as being an environment which is highly productive. One tiny hill I had to run up while working on this project was using the DeviseInvitable (DV) plugin to create a email invite sign up flow for the app's users. DV adds some out of the box routes and a mailer to your application so you can simply call User.invite!(email: '[email protected]')
and it will create a user, assign them an invite token, and set them up so they can sign up via the email that it sends out.
In my project, I needed to make this system work with my Ember only frontend. This was a simple enough process but requir