Passwordless login with Rails 7
Ruby on Rails ships with no user authentication layer. The core maintainers of the framework made this decision as it could vary per app how you might want to handle such a feat. Most developers I come across reach for the devise gem that works very well for most of your needs. There are even additional gems offering newer features like inviting users, one-time passwords, and more. Recently I questioned the whole notion of a login and password mechanism. We are conditioned to this way of "access" but it's quite cumbersome when it comes down to it. This guide takes the "magic link" approach to authentication where you enter your email and if it exists in the database, are emailed a link to sign in. Read the full guide here: https://web-crunch.com/posts/password... Timestamps: 00:00:00 - Intro 00:02:30 - App walk-through 00:04:29 - Create a new app 00:05:19 - Installing the passwordless gem 00:06:19 - Generate User model 00:07:17 - Add user validations and extend gem to use User model 00:08:07 - Mount engine included with gem 00:08:30 - Add "current_user" helper method and private methods to require a signed-in user 00:11:39 - Generate static controller 00:16:26 - Add users routing and controller 00:24:43 - Extend gem views and customize the design 00:28:30 - Add before_action to members_only path 00:31:10 - Dealing with a Turbo bug with the email magic link form 00:32:23 - Wrapping up 00:33:36 - Help me figure out what to cover next! ======== Hi, My name is Andy Leverenz and I work as a product designer and developer. For fun, I design, code, and write. Check out my blog called Web-Crunch https://web-crunch.com where I publish design and development tutorials with the occasional vlog. ♥️ Sponsor me on GitHub https://github.com/sponsors/justalever ☕️ Keep me awake. Buy me a coffee https://www.buymeacoffee.com/webcrunch 📰 One-Click Subscribe: https://www.youtube.com/user/webcrunc... 💻 Previously published at: https://web-crunch.com/posts/password... 💎Ruby on Rails Course: HELLO RAILS https://hellorails.io 💻 Check out the blog: https://web-crunch.com 🦄 Check out my personal site: https://justalever.com 🚀 Links: Weekly Newsletter: https://digest.web-crunch.com/ Twitter: / webcrunchblog Github: https://github.com/justalever 📘Check out my book on UX Design: "LUXD: Learn User Experience Design" https://web-crunch.com/products/luxd 📙 Check out my FREE book on Tumblr Theming: "Pro Tumblr Theming" https://web-crunch.com/products/ptt

The Complete Guide to Ruby on Rails Encrypted Credentials

Ruby on Rails 7 - How to Use Hotwire to Collect User Profile Information

ViewComponent Crash Course with Ruby on Rails

The French Do Not Care About Work

Unbelievable Workers | Working with Talented Engineers #46 #fail #adamrose #smartworkers

Linus Torvalds Was Right About Microsoft… And Nobody Noticed

RailsConf 2018: Warden: the building block behind Devise by Leonardo Tegon

Rails Concerns vs. Modules and when to use each

15. BFFless Authentication

Introduction to Hotwire in Ruby on Rails

Only Dangerously Smart People Think Like This

the true reason C++ always wins

Devise Two Factor Authentication 2FA in Rails 7

Hello Hotwire - Free Course - Full Version

Learn Ruby on Rails - Full Course

Adding a landing page to Rails with TailwindUI

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

If Prime Numbers Become Increasingly Rare, Then Why Do They Keep Showing Up In Pairs?

10x your chances of landing a Ruby on Rails Job

