Ruby on Rails5 Tutorial
A web-application framework that includes everything needed to create web applications.
List of Lessons to Learn Ruby on Rails5
This is a list of Ruby on Rails5 lessons where you can start learning immediately without environment setup.
Study
Ruby on Rails5 I
0%
Ruby on Rails is a web-application framework written in Ruby that includes everything needed to create web applications. Let's use Rails to develop a Twitter-like SNS app!
What You Can Learn in This Lesson
- 
1. Getting Started- 
Getting Started
 
- 
- 
2. The Basics of Rails- 
Generating a Rails App
- 
The Top Page
- 
Understanding Views
- 
Understanding Controllers
- 
Understanding Routes
- 
Changing a Route
- 
The About Page
 
- 
- 
3. Completing the App- 
Adjusting the Layout
- 
Displaying an Image
- 
Changing the Top Page URL
- 
Creating Links
 
- 
Study
Ruby on Rails5 II
0%
In this lesson, we'll be adding a page to the SNS app we made in the previous lesson to show the timeline. We'll also be learning about databases along the way.
What You Can Learn in This Lesson
- 
1. Displaying Posts- 
Getting Started
- 
Displaying Posts
- 
Using Variables in Views
- 
Using the each Method in Views
- 
Defining Variables in Actions
 
- 
- 
2. Using the Database- 
Preparing a Database
- 
Creating a Table
- 
Models
- 
rails console
- 
Adding Data to a Table
- 
Getting Data from a Table
- 
Getting Data from a Table (2)
- 
Displaying the Posts
 
- 
- 
3. The Common Layout- 
Refactoring the Common Layout
- 
The link_to Method
 
- 
Study
Ruby on Rails5 III
0%
In this lesson, we'll be creating a page to show the details of a post. We'll also add a "New Post" page for the users to create posts.
What You Can Learn in This Lesson
- 
1. Getting Started- 
Getting Started
 
- 
- 
2. Creating the Post Details Page- 
Auto-Generated Columns
- 
The find_by Method
- 
The Post Details Page
- 
Getting the id from the URL
- 
Displaying a Post in the Post Details Page
- 
Adding Links to the Post Details Page
 
- 
- 
3. Creating the New Post Page- 
Creating the New Post Page
- 
Adding Input Fields to Form
- 
Sending and Receiving the Input Data
- 
The redirect_to Method
- 
Saving the Post
- 
Sorting the Posts
 
- 
Dojo
Ruby on Rails5 I
0%
This lesson will allow you to review and apply the knowledge learned in the first 3 Rails Study lessons. Perfect your skills by working out so...
What You Can Learn in This Lesson
- 
1. Top Page & About Page- 
Overview
- 
App Setup
- 
Top Page
- 
Changing the URL
- 
About Page
- 
The Header
 
- 
- 
2. Post Features (Posts & Posts Details Pages)- 
Making Models and Tables
- 
Post Page
- 
Post Details Page
 
- 
Study
Ruby on Rails5 IV
0%
In this lesson, we'll be adding the "Edit" and "Delete" functionalities to the TweetApp.
What You Can Learn in This Lesson
- 
1. Editing/Deleting a Post- 
Getting Started
- 
Editing a Post
- 
Deleting a Post
 
- 
- 
2. Editing a Post- 
The Edit Post Page
- 
Adding a Form
- 
Getting the Form Input Data in the Controller
- 
Updating a Post
 
- 
- 
3. Deleting a Post- 
Deleting a Post (2)
- 
Adding a Link to the "destroy" Action
- 
Deleting a Post (3)
 
- 
Study
Ruby on Rails5 V
0%
In this lesson, we'll learn how to validate data. This will let you prevent saving posts that are empty or too long.
What You Can Learn in This Lesson
- 
1. Validating Posts- 
Getting Started
- 
Preventing Empty Posts
- 
Limiting the Length of Posts
 
- 
- 
2. Validation Messages- 
Validation and the "save" Method
- 
Redirecting to the Form
- 
Redisplaying the Content of Failed Post
- 
Displaying Error Messages
- 
Displaying Flash Messages
 
- 
- 
3. Validation in Other Pages- 
Validations on the New Post Page
- 
Validations on the New Post Page (2)
- 
Flash for Creating/Deleting a Post
 
- 
Dojo
Ruby on Rails5 II
0%
This Dojo lesson will give you the chance to practice and apply the knowledge and skills gained in Rails lessons III, IV, and V. As you code m...
What You Can Learn in This Lesson
- 
1. Lesson Overview- 
Overview
 
- 
- 
2. Validation- 
Setting up Validation
 
- 
- 
3. New Post Feature- 
New Post Page
- 
Saving Posts
- 
Success & Error Messages
 
- 
- 
4. Edit & Delete Features- 
Edit Post Page
- 
Completing the Edit Feature
- 
Delete Feature
 
- 
Study
Ruby on Rails5 VI
0%
In this lesson, we'll be adding the User model to the TweetApp. It's a good place to review what you've learned in the previous lessons!
What You Can Learn in This Lesson
- 
1. The User Model- 
Getting Started
- 
Creating the Table and the Model
- 
Creating a User
- 
Adding Validations
 
- 
- 
2. Displaying the Users- 
Creating the Users Page
- 
Creating the User Details Page
 
- 
- 
3. Creating a User- 
Adding a Form
- 
Saving the User
- 
Adding Validation to the "create" Action
 
- 
- 
4. Editing the User- 
Editing the User
- 
Updating the Changes
 
- 
Study
Ruby on Rails5 VII
0%
In this lesson, we'll add a column to let the users set a profile image.
What You Can Learn in This Lesson
- 
1. Getting Started- 
Getting Started
 
- 
- 
2. Saving the Image Name- 
Adding a Column
- 
Editing the Migration File
- 
Setting the Default Image
- 
Displaying Profile Images
 
- 
- 
3. Uploading an Image- 
Sending Images
- 
Creating a File
- 
Saving Images
 
- 
Study
Ruby on Rails5 VIII
0%
In this lesson, we'll learn how to add the "Log in/Log out" functionality to our TweetApp.
What You Can Learn in This Lesson
- 
1. Preparing the Model and Views- 
Getting Started
- 
The "Login" Page
- 
Adding the "password" Column
- 
Sending the Login Data
 
- 
- 
2. Adding the "Login" Functionality- 
Identifying the User
- 
When User Login Request Fails
- 
Logging In
- 
Logging Out
- 
Logging in after Signing Up
 
- 
- 
3. Authentication- 
Displaying the User's Name
- 
Moving Variables to the Action
- 
Authenticating a User
- 
Authenticating a User (2)
- 
Restricting the Edit Account Page
- 
Authenticating the "edit" Action
 
- 
Dojo
Ruby on Rails5 III
0%
This Dojo lesson will give you a chance to review and strengthen the skills you learned in Rails Study VII & VIII. You'll learn how to add fea...
What You Can Learn in This Lesson
- 
1. Overview- 
Lesson Overview
 
- 
- 
2. Image Upload Feature- 
Adding the image_name Column
- 
Setting a Default Image
- 
Edit Feature for User Profile Images
 
- 
- 
3. Login and Logout- 
Adding a password Column
- 
Making a Login Form
- 
Login Functionality
- 
Invalid User Data
- 
Log in after Sign Up
- 
The Logout Feature
 
- 
- 
4. Completing User Login- 
Adding the User's Name to the Header
- 
Restricting Access before Log In
- 
Allowing Access After Log In
- 
Limiting Access to Edit Account Page
 
- 
Study
Ruby on Rails5 IX
0%
In this lesson, we'll learn how to associate the Post model and the User model. This will allow us to display which user posted which post.
What You Can Learn in This Lesson
- 
1. Associating Posts with the User Model- 
Getting Started
- 
Adding the "user_id" Column to Posts Table
- 
Associating New Posts with the Logged in Users
- 
Displaying User's Name for Each Post
- 
Defining an Instance Method
- 
Using Instance Methods
- 
Displaying the User's Name on the "Posts" Page
- 
The where Method
- 
Getting the User's Posts
- 
Displaying Posts on the "User Details" Page
 
- 
- 
2. Authenticating the "edit" Action- 
Preventing Others from Editing Your Post
- 
Preventing Others from Editing Your Post (2)
 
- 
Study
Ruby on Rails5 X
0%
In this lesson, we'll add the "likes" functionality to our app.
What You Can Learn in This Lesson
- 
1. The Likes Functionality- 
Getting Started
- 
The Like Model
- 
Adding Columns to the "likes" Table
- 
Displaying "Liked!" or "Not Liked!"
- 
The Likes Controller
- 
The "Like!" Button
- 
Removing Likes
 
- 
- 
2. Improving the Like! button- 
Using an Icon for the "Like!" Button
- 
Using an Icon for the "Like!" Button (2)
- 
Displaying the Number of Likes
 
- 
- 
3. Displaying the Liked! Posts- 
Displaying the Liked Posts
- 
Displaying the Liked Posts (2)
 
- 
Study
Ruby on Rails5 XI
0%
In this lesson, we'll learn how to handle passwords securely in web applications.
What You Can Learn in This Lesson
- 
1. Password Hashing- 
Getting Started
- 
Editing the Gemfile
- 
has_secure_password
- 
Adding password_digest
- 
The password Column
- 
Using Hashed Passwords
 
- 
Dojo
Ruby on Rails5 IV
0%
You'll review and apply the skills learned in Rails Study lessons IX, X, and XI in this Dojo lesson. Strengthen your skills by linking users a...
What You Can Learn in This Lesson
- 
1. Lesson Overview- 
The Overall Goal
 
- 
- 
2. Linking Users & Posts- 
Setup for the Association
- 
Associating New Posts with a User
- 
Displaying User's Name on the Posts Page
- 
Displaying Posts on the User Details Page
- 
Preventing Others from Editing Your Posts
 
- 
- 
3. The Like Feature- 
Creating the Like Feature
- 
The Likes Controller
- 
Creating the Button for the Like Feature
- 
Displaying the Number of Likes
- 
Displaying the Liked Posts
 
- 
- 
4. Hashing Passwords- 
Hashing Setup
- 
Hashing & Saving
- 
Log in with a Hashed Password
 
- 
After Finishing Ruby on Rails5 Lessons
Set up your Ruby on Rails5 environment and apply what you've learned in the real world.
Courses Related to Ruby on Rails5
Expand what you can do by learning related courses.
          Start the lesson from the initial state.
Warning: your code will be deleted.
        
          Review the lesson without
resetting your code.