Summary

PairApp Issue #16

We have sign up on the app locked down. We only want users to sign up for the site if they’ve been invited. The devise invitable gem can be used to invite users to an app via email and will be the solution we use to implement this.

Proposals

Add and configure the DeviseInvitable gem

The documentation on the README seems quite robust. I plan to go through the normal installation and setup outlined inside the README. I don’t think we’ll require much custom behavior for now, although we might in the future (like if we want the user to specify more fields on sign up than email and username

Add a convenient way to view Emails locally in development

Since we’re getting into sending emails, I think it’d be nice to add a way to easily display and view them in the development environment without having to actually send them.

Proposal 1: Letter Opener ✅

The letter opener gem will just open the email in a new browser tab whenever your application tries to send one. The developer can then view it.

Pros:

  1. Simple to setup and no effort to maintain
  2. Nice visual feedback any time the app delivers an email

Cons:

  1. Have to actually take the action that triggers the email in order to view the email

Proposal 2: Mailer Previews

We can also just use rails’ builtin mailer preview system. The developer can build some MailerPreviews and then by visiting /rails/mailers all of the available mailer previews in the app can be viewed.

Pros:

  1. Can view any email for the app at any time, assuming it has a MailerPreview built for it.

Cons: