Ruby on Rails
Curriculum
Rails · Full-stack

Ruby on Rails Tutorial

A complete Ruby on Rails path covering MVC, Active Record, auth, Hotwire preview, APIs, testing, and production deployment.

65 lessonsBeginner → ProFull-stack
Start from the beginning

Curriculum

Work through each section in order. Every lesson ends with practice and key points so the idea sticks.

Beginner

Getting Started

5 lessons · ~55 min
  1. 1
    Welcome to Ruby on Rails

    Convention over configuration for web apps.

  2. 2
    Ruby Quickstart

    Just enough Ruby syntax for Rails.

  3. 3
    Install Ruby & Rails

    Tooling for a fresh environment.

  4. 4
    rails new

    Generate an application skeleton.

  5. 5
    MVC Mental Model

    Models, views, controllers, routes.

Beginner

Routing & Controllers

5 lessons · ~55 min
  1. 6
    Routes Basics

    config/routes.rb essentials.

  2. 7
    Controllers

    Actions, params, and redirects.

  3. 8
    Views & ERB

    Embed Ruby in HTML templates.

  4. 9
    Layouts & Partials

    Reuse UI pieces.

  5. 10
    Strong Parameters

    Permit only safe input.

Beginner

Active Record

5 lessons · ~55 min
  1. 11
    Models & Migrations

    Create tables the Rails way.

  2. 12
    CRUD with Active Record

    create, read, update, destroy.

  3. 13
    Validations

    Keep bad data out.

  4. 14
    Associations

    has_many, belongs_to, and friends.

  5. 15
    Query Interface

    where, order, includes.

Beginner

Forms & UX

5 lessons · ~64 min
  1. 16
    Form Helpers

    form_with and f.text_field.

  2. 17
    Flash Messages

    notice and alert patterns.

  3. 18
    Asset Pipeline / Importmaps

    Modern Rails front-end defaults.

  4. 19
    Hotwire Turbo Preview

    Faster navigation with less custom JS.

  5. 20
    Project: Blog CRUD

    Posts with validation and index/show.

Beginner

Authentication & Authorization

5 lessons · ~64 min
  1. 21
    Sessions Primer

    Cookies and login state.

  2. 22
    has_secure_password

    Password hashing built-in.

  3. 23
    Authentication From Scratch

    Sign up / login / logout flow.

  4. 24
    Authorization Patterns

    Pundit/CanCanCan concepts.

  5. 25
    Project: Auth Blog

    Only authors edit their posts.

Intermediate

Intermediate Rails

5 lessons · ~65 min
  1. 26
    Nested Resources

    Comments under posts.

  2. 27
    Concerns

    Share model/controller code.

  3. 28
    Background Jobs

    Active Job mental model.

  4. 29
    Action Mailer

    Send email from the app.

  5. 30
    File Uploads

    Active Storage overview.

Intermediate

APIs

5 lessons · ~70 min
  1. 31
    API-only Mode

    Rails as a JSON backend.

  2. 32
    Serialization

    jbuilder / Alba patterns.

  3. 33
    API Authentication

    Tokens and headers overview.

  4. 34
    Versioning APIs

    Keep clients stable.

  5. 35
    Project: JSON Posts API

    Index/create endpoints with tests.

Intermediate

Testing

5 lessons · ~68 min
  1. 36
    Minitest or RSpec

    Pick a stack and write model tests.

  2. 37
    Request Specs

    Exercise HTTP endpoints.

  3. 38
    Fixtures & Factories

    Reusable test data.

  4. 39
    System Tests

    Browser-level coverage overview.

  5. 40
    Project: Test the Blog

    Cover validations and happy paths.

Intermediate

Production

5 lessons · ~65 min
  1. 41
    Environments

    development, test, production.

  2. 42
    Credentials & ENV

    Secrets management.

  3. 43
    Deploy Overview

    Render/Fly/Heroku-style deploys.

  4. 44
    Performance Basics

    N+1 queries and caching.

  5. 45
    Security Checklist

    CSRF, XSS, mass assignment.

Intermediate

Advanced Rails

3 lessons · ~39 min
  1. 46
    Engines Overview

    Mountable mini-apps.

  2. 47
    Custom Middleware

    Rack awareness.

  3. 48
    Multi-db Glimpse

    Primary/replica concepts.

Advanced

Advanced Rails

2 lessons · ~38 min
  1. 49
    Internationalization

    I18n for multi-language UI.

  2. 50
    Capstone: Marketplace MVP

    Users, listings, and basic auth.

Advanced

Capstone & Career

10 lessons · ~166 min
  1. 51
    Capstone: SaaS Skeleton

    Teams, billing stub, dashboards.

  2. 52
    Rails Interview Review

    MVC, AR, routing, security.

  3. 53
    Next Steps

    Hotwire mastery or API+React.

  4. 54
    Final Challenge

    Ship a CRUD app with auth and tests.

  5. 55
    Glossary Drill

    MVC, migration, callback, concern, job.

  6. 56
    Reading Logs

    Debug request cycles from server logs.

  7. 57
    Database Indexes

    Speed up common queries.

  8. 58
    Background Job Pitfalls

    Idempotency and retries.

  9. 59
    Portfolio Tips

    README, screenshots, seed data.

  10. 60
    Community & Gems

    Evaluate dependencies wisely.

Advanced

Practice Labs

5 lessons · ~80 min
  1. 61
    Practice Lab 61

    Hands-on practice lab consolidating earlier rails skills.

  2. 62
    Practice Lab 62

    Hands-on practice lab consolidating earlier rails skills.

  3. 63
    Practice Lab 63

    Hands-on practice lab consolidating earlier rails skills.

  4. 64
    Practice Lab 64

    Hands-on practice lab consolidating earlier rails skills.

  5. 65
    Practice Lab 65

    Hands-on practice lab consolidating earlier rails skills.