Just launched! Get 30% off Rails Revisited Have a Look

Using Passwordless Login

Buy or Subscribe

You can access this course in just a minute, and support my efforts to rid the world of crappy online courses!

Buy Standalone  Subscribe

We could probably write this ourselves, but I've used the the devise-passwordless gem before and it works really well. Setting it up is a matter of following the instructions on the GitHub page, but make sure you also setup your mail settings as shown in the video:
  config.action_mailer.raise_delivery_errors = true
  config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
  config.action_mailer.perform_caching = false
  config.action_mailer.smtp_settings = { 
    address: ENV['AWS_SES_HOST'], 
    user_name: ENV['AWS_SES_USER'], 
    password: ENV['AWS_SES_PASS'],
  }
You want to be sure you see any errors on send, so make sure that's enabled. Also: be sure to use Rails secrets or environment settings as I'm doing here.