Chapter II - Introduction to Ruby on Rails
(avr. time for this chapter: 2 days)
Ruby on Rails (commonly referred to as Rails) is a server-side web application framework written in Ruby under the MIT License. Rails follows the Model-View-Controller (MVC) architectural pattern, providing default structures for databases, web services, and web pages.
In this chapter, the objective is to understand how Rails works. This is primarily a learning phase—you do not need to write extensive code, only what helps reinforce your understanding. Focus on comprehension rather than implementation.
The recommended course has several chapters, but for this onboarding, we focus on the essentials that will prepare you for the practical exercises ahead.
Udemy Course
We recommend the following comprehensive course for learning Ruby on Rails.
Steps to implement:
- Obtain your course credentials from your tutor
- Watch the recommended chapters listed below
- Take notes on key concepts
- Repeat sections if clarification is needed
Reference: The Complete Ruby on Rails Developer Course
Recommended Chapters:
Chapter 2 - Introduction
- Rails basics Introduction (1st video)
Chapter 3 - MVC and Application Structure
- Model, View, Controller and Rails App Structure
- Root route, controller, more MVC and say 'Hello World!'
- Structure of a Rails application
- The back-end: CRUD, scaffold and wrap-up
Chapter 4 - Working with Data
- Tables, migrations and naming conventions
- Validations
- Show articles (route, action and view)
- Articles index
- Forms - build a new article creation form
- Edit and update: update existing articles
- Delete: delete articles
- DRY (Don't Repeat Yourself) code - refactoring and partials
Chapter 6 - Associations (Part 1)
- One to many association
Chapter 7 - Associations (Part 2)
- Many-to-many association - introduction
- Many-to-many association - back-end implementation