Do you want to add User and Admin accounts to your rails application?
In this AWS + Rails series tutorial I walk you through the entire process of installing and configuring the devise gem in a Rails application. We will walk through adding users and admins accounts as well as profile pages.
Before we get started, we will use the AWS SES for email in our rails application which we created in our previous AWS SES tutorial. If you have not see that video yet and would like to follow along, I’ll link it in the card here and the description below, if you don’t have emails set up within your rails application you’re going to want to watch that first. This will be used for our "forgot password" functionality included with devise as well as any other notifications we would like to email our users.
Timestamps
0:00 Introduction
1:50 Getting started
2:05 Add gems
2:23 Install devise
3:20 Add flash messages
4:12 Add a helper
5:20 Create devise model
5:44 Generate devise views
5:53 Add a few more database columns
6:46 Run the migrations
7:23 Add devise links
8:26 Create a user
8:53 Setting an admin
9:45 Create users controller
10:33 Clean up routes
11:15 Add user links
11:50 Update users controller
13:05 Create user show view
13:50 Create edit profile
14:57 Surprise from my coworker
15:49 Create users index view
17:36 Create seed file bulk data
20:23 Closing notes
How to Create Your First Rails App
• How to Create Your First Rails App
How to use AWS SES to send email in a Rails App
• AWS + Rails: How to use AWS SES to send em...
Devise Gem
https://github.com/heartcombo/devise
Devise Bootstrapped Gem
https://github.com/king601/devise-boo...
AWS + Rails Series Playlist
• AWS + Rails
My Gear List
http://brain-trust.io/my-gear
My YouTube SEO Software
https://www.tubebuddy.com/braintrust
My Accounting Software
https://shareasale.com/r.cfm?b=960179...
Make sure you subscribe to my channel to keep up to date with new content!
DISCLAIMER: Links in this description include affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you! Thank you for supporting BrainTrust Digital so I can continue to provide you with free content each week!