How to Create Your First Rails App

Опубликовано: 11 Апрель 2026
на канале: BrainTrust Digital
3,432
82

Do you want to create a rails your first rails application? In this AWS Rails tutorial were going to walk through how to create a simple rails 6 application.

Timestamps
0:00 Introduction
2:03 Overview and setup
2:50 Install homebrew
3:28 Install rbenv
5:00 Install ruby
7:08 Install bundler
8:04 Install rails
8:49 Install PostgreSQL
9:25 Creating the rails app
11:05 Generating a controller
13:31 Create rails templates from a static page
17:03 Extracting reusable partials
20:40 Generating the videos scaffold
21:50 Migrating our data
22:45 Routing
25:55 Cleaning up video views
28:05 Surprise visit from my coworker
31:00 Adding some links
32:10 Closing notes

We will be creating the AWS + Rails app, we are finally getting into some of the rails side of AWS + Rails tutorial series. AWS rails app will start very as a simple rails app to display our YouTube tutorials. Over time we will iteratively improve adding features to this app, I have tons of ideas, but feel free to makes in the comment section below.

AWS + Rails Tutorial Series
   • AWS + Rails: How to Purchase a Domain thro...  

homebrew
A package manager for your system. If you have never heard of package manager, this is just software automates the way you install, update, configure and remove software.
Website: https://brew.sh/
How to install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Hom...)"

rbenv
A version manager for Ruby, making it easy to have multiple versions of ruby on your computer — needs improving
Website: https://github.com/rbenv/rbenv
How to install
brew install rbenv

ruby
How to install
rbenv install 2.7

bundler
Bundler provides a consistent environment for Ruby projects by tracking and installing the exact gems and versions that are needed. Ruby packages you will use are called gems, these gems have many versions, so bundler just ensures you don’t have to worry about the various versions and dependencies of your gems bundler does that for you.
Website: https://bundler.io
How to install
gem install bundler

rails
gem install rails

PostgreSQL
brew install postgresql
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents

Create the rails app
rails new aws-rails -d postgresql
rails g scaffold controller home
rails g scaffold Video title:string youtube_id:string position:integer

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!