In this AWS + Rails tutorial we walk through how to add categories to your ruby on rails application with a has many through relationship. Next, we use yarn to add the select2 JS plugin to create a clean interface for tagging videos with categories. Finally, we update views to display the categories under the videos and make them clickable to filter for other videos with the same category.
#rails #relationships
⏰ Timestamps
0:00 Introduction
1:27 Create Git branch
1:59 Category scaffold
2:30 Create join table
3:42 Migrate database
3:57 Create join model
4:59 Add relationships
5:29 Update routes
7:00 Lock down actions
9:58 Update form
11:34 Update strong params
12:51 Yarn add Select2
14:38 Data population
18:04 Minor cleanup
18:25 Update views
23:47 Push to GitHub
25:10 Deploy
26:32 Verify Production
26:54 Closing notes
Rails 6 Bootstrap Install
• Rails 6 Bootstrap Install
How to Deploy Your First Rails App Capistrano Deployment
• How to Deploy Your First Rails App to...
How to use Git and GitHub for your Rails Application
• How to use Git and GitHub for your Ra...
How to Create and Use an SSH Config File
• How to Create and Use an SSH Config F...
How to Sync Production Data in Rails Quickly
• How to Sync Production Data in Rails ...
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...
Try Audible and Get Two Free Audiobooks
https://amzn.to/36dXe3V
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!