Backend

Ruby on Rails Roadmap: Step-by-Step Guide for 2026

This Ruby on Rails roadmap takes you from Ruby basics to building full web applications with Rails models, controllers, views, Hotwire, background jobs, testing and deployment.

Steps6Time4 to 6 monthsLevelBeginner to job-ready

What is a Ruby on Rails Developer?

Ruby on Rails is a web framework written in Ruby that helps developers build complete web applications quickly. A Rails developer creates database models, business logic, pages and APIs following Rails conventions.

Rails powers products such as GitHub, Shopify and Basecamp. It is loved by startups because a small team can build and launch a full product fast.

How to use this Ruby on Rails roadmap

Follow this Ruby on Rails roadmap in order. Learn Ruby first, then the Rails basics, then the tools used in production apps.

Build one app throughout the roadmap, such as a job board, and add features at every step.

1Step 1: Ruby fundamentals

Learn the language Rails is built on.

What is it?

Blocks let you pass code to methods like each and map.

What to learn

Ruby syntaxRuby blocks and iteratorsRuby classes and modulesRuby hashes and arraysGems and Bundler

Ruby is designed to be readable. Spend a couple of weeks writing small Ruby scripts before starting Rails.

Learn each topic here

Tap a topic to open a full explanation with examples, no need to go anywhere else.
Ruby syntax

Ruby code reads almost like English. Variables need no type (name = "Sara"), methods are defined with def ... end, and string interpolation uses "Hello #{name}". Everything in Ruby is an object, even numbers.

Why it matters: Rails code is Ruby, so comfort with the syntax makes every later step easier.

Ruby blocks and iterators

A block is a chunk of code passed to a method with do ... end or { }. Iterators like each, map, select and reduce run a block for every item in a collection.

Why it matters: blocks are used everywhere in Rails, from loops in views to configuration.

Ruby classes and modules

Classes define objects with methods (class Job ... end). Modules group methods that can be mixed into classes with include, which is how Rails adds shared behaviour such as concerns.

Why it matters: Rails models, controllers and helpers are all classes and modules.

Ruby hashes and arrays

Arrays hold ordered lists ([1, 2, 3]) and hashes hold key-value pairs ({ title: "Dev", city: "Dubai" }). Symbols like :title are common hash keys.

Why it matters: Rails passes options and parameters around as hashes all the time.

Gems and Bundler

Gems are Ruby libraries. Bundler installs the gems listed in your Gemfile with bundle install and keeps exact versions in Gemfile.lock.

Why it matters: every Rails app depends on gems, and Bundler keeps them consistent across computers.

Example

ruby

jobs = ["Developer", "Designer", "Tester"]
jobs.each_with_index do |job, i|
  puts "#{i + 1}. #{job}"
end

The script prints a numbered list of jobs.

Practice project: Write a Ruby script that reads a CSV of jobs and prints them grouped by city.

Helpful resource: Ruby documentation

2Step 2: Rails basics

Create your first Rails app and understand MVC.

What is it?

A route connects a URL to a controller action.

What to learn

Rails MVCRails generatorsRails routingControllersViews and ERB

Rails follows “convention over configuration”. Learn the conventions and you write far less code.

Learn each topic here

Tap a topic to open a full explanation with examples, no need to go anywhere else.
Rails MVC

Rails splits code into Models (data and rules), Views (HTML templates) and Controllers (handle requests and choose what to show). A request goes from the router to a controller, which uses models and renders a view.

Why it matters: knowing where code belongs keeps apps organised as they grow.

Rails generators

Generators create files for you, following Rails conventions.

bash

bin/rails generate scaffold Job title:string city:string
bin/rails db:migrate

Why it matters: a scaffold gives you a working model, migration, controller, views and routes in seconds.

Rails routing

Routes in config/routes.rb map URLs to controller actions. resources :jobs creates the seven standard routes (index, show, new, create, edit, update, destroy). Run bin/rails routes to see them.

Why it matters: every page and API endpoint starts with a route.

Controllers

Controllers group related endpoints in classes that inherit from ControllerBase, using attributes like [HttpGet] and [Route("api/[controller]")].

Why it matters: they keep large APIs organised.

Views and ERB

Views are HTML files with embedded Ruby (ERB). <%= %> prints a value and <% %> runs code without printing. Layouts wrap pages and partials (_job.html.erb) are reusable pieces.

Why it matters: views are what users actually see.

Example

ruby

# config/routes.rb
Rails.application.routes.draw do
  resources :jobs
  root "jobs#index"
end

resources :jobs creates all standard routes for jobs in one line.

Practice project: Generate a Rails app with pages for listing and showing jobs.

Helpful resource: Rails Getting Started guide

3Step 3: Active Record and databases

Store and query data the Rails way.

What is it?

Associations connect models together.

What to learn

Active Record modelsRails migrationsAssociationsValidationsRails queries

Check the SQL Active Record creates in the logs. It helps you avoid slow queries.

Learn each topic here

Tap a topic to open a full explanation with examples, no need to go anywhere else.
Active Record models

Active Record maps a database table to a Ruby class. A Job model reads and writes the jobs table: Job.create(title: "Dev"), Job.find(1), job.update(city: "Dubai").

Why it matters: you work with data as Ruby objects instead of writing SQL by hand.

Rails migrations

Migrations are Ruby files that change the database schema step by step, for example adding a table or column. Run them with bin/rails db:migrate; Rails tracks which ones have run.

Why it matters: every developer and server gets the same database structure.

Associations

Associations describe relationships between models: has_many, belongs_to, has_one and has_many :through. They add methods like company.jobs automatically.

Why it matters: real data is connected, and associations make it easy to work with.

Validations

Validations check data before saving, for example validates :email, presence: true, uniqueness: true. If a validation fails, the record is not saved and errors are available for the form.

Why it matters: they protect your database from bad data.

Rails queries

Active Record builds SQL from Ruby: Job.where(city: "Dubai").order(created_at: :desc).limit(10). Scopes give names to common queries, such as Job.recent.

Why it matters: fast, readable queries keep apps responsive.

Example

ruby

class Company < ApplicationRecord
  has_many :jobs
end
class Job < ApplicationRecord
  belongs_to :company
  validates :title, presence: true
end

company.jobs now returns all jobs for a company.

Practice project: Add companies and applications to your job board with associations and validations.

Helpful resource: Active Record basics

4Step 4: Forms, auth and Hotwire

Build interactive features with little JavaScript.

What is it?

form_with builds a form tied to a model.

What to learn

Rails formsRails authenticationHotwire and TurboStimulusAction Mailer

Rails 8 includes an authentication generator, so you do not need extra gems for basic login.

Learn each topic here

Tap a topic to open a full explanation with examples, no need to go anywhere else.
Rails forms

form_with builds forms linked to models, including the correct URL and a CSRF token. Strong parameters in the controller (params.require(:job).permit(:title)) control which fields can be saved.

Why it matters: forms are how users create and edit data safely.

Rails authentication

Rails 8 can generate a simple, secure authentication system with bin/rails generate authentication, using has_secure_password. Larger apps often use the Devise gem.

Why it matters: almost every app needs login, and secure defaults matter.

Hotwire and Turbo

Turbo makes Rails apps feel like single-page apps by updating pages over the network without full reloads. Turbo Frames update part of a page and Turbo Streams push live changes.

Why it matters: you get fast, interactive apps while writing mostly Ruby and HTML.

Stimulus

Stimulus is a small JavaScript framework for adding behaviour to HTML using data attributes, such as toggling menus or copying text. It works together with Turbo.

Why it matters: it adds interactivity without a large front-end framework.

Action Mailer

Action Mailer sends emails from Rails using mailer classes and view templates, such as welcome emails or password resets. In development you can preview emails in the browser.

Why it matters: email is a key part of most web apps.

Example

erb

<%= form_with model: @job do |f| %>
  <%= f.text_field :title %>
  <%= f.submit "Save job" %>
<% end %>

Rails fills in the URL, method and security token automatically.

Practice project: Add sign up, login and a live search for jobs using Turbo.

Helpful resource: Hotwire

5Step 5: Background jobs, APIs and testing

Make apps reliable and connect them to others.

What is it?

A job runs work outside the web request.

What to learn

Active JobRails API modeRails testingRSpec (optional)N+1 queries

Send emails and heavy work in background jobs so pages stay fast.

Learn each topic here

Tap a topic to open a full explanation with examples, no need to go anywhere else.
Active Job

Active Job is Rails’ interface for background jobs. You call MyJob.perform_later, and a backend such as Solid Queue or Sidekiq runs the work outside the web request.

Why it matters: slow work does not slow down pages for users.

Rails API mode

rails new app --api creates a lighter app for JSON APIs without views. Controllers return JSON for mobile apps or JavaScript front ends.

Why it matters: Rails can power the back end for React, Vue or mobile apps.

Rails testing

Rails includes Minitest with model, controller, integration and system tests. Fixtures provide sample data and bin/rails test runs everything.

Why it matters: tests let you change code without fear of breaking features.

RSpec (optional)

RSpec is a popular alternative testing framework for Ruby with a descriptive style (describe, it, expect). Many companies use it instead of Minitest.

Why it matters: you will see it in many existing Rails codebases.

N+1 queries

An N+1 problem happens when code loads a list and then runs one extra query for each item, for example each job’s company. Fix it with includes(:company) to load related data in one go.

Why it matters: N+1 queries are one of the most common causes of slow Rails pages.

Example

ruby

class ApplicationMailerJob < ApplicationJob
  def perform(application)
    ApplicationMailer.received(application).deliver_now
  end
end
ApplicationMailerJob.perform_later(app)

The user gets an instant response while the email sends in the background.

Practice project: Send application emails in a background job and add tests for models and controllers.

Helpful resource: Testing Rails applications

6Step 6: Deployment and production

Ship your Rails app.

What is it?

Kamal deploys with one command after setup.

What to learn

Kamal deploymentEnvironment variablesCachingMonitoring basicsDocker

Kamal, included with new Rails apps, deploys Docker containers to your own servers.

Learn each topic here

Tap a topic to open a full explanation with examples, no need to go anywhere else.
Kamal deployment

Kamal deploys Rails apps as Docker containers to any server over SSH, with zero-downtime updates. New Rails apps include a Kamal config file.

Why it matters: you can host apps on affordable servers without complex platforms.

Environment variables

Environment variables keep secrets like API keys out of your code. Read them from process.env and store them in a .env file that is not committed to Git.

javascript

const apiKey = process.env.API_KEY;
Caching

Caching saves ready-made copies of pages so they load faster. Use your host’s cache or a plugin like LiteSpeed Cache or WP Rocket.

Monitoring basics

Monitoring tells you when something breaks in production. Use error tracking (such as Sentry), logs and uptime checks.

Docker

Docker packages your app and its dependencies into a container that runs the same everywhere. See our Docker roadmap.

dockerfile

FROM node:20-alpine WORKDIR /app COPY . . RUN npm ci CMD ["node", "server.js"]

Example

bash

bin/kamal setup
bin/kamal deploy

Your app is built into a container and started on the server.

Practice project: Deploy your job board to a server with a custom domain.

Helpful resource: Kamal documentation

Ruby on Rails roadmap project ideas

Projects turn what you learn into real skills. Build at least one project from each level below, and put every finished project on GitHub with a clear README.

Beginner

Blog

Posts with comments.

Beginner

To-do app

Tasks with Turbo updates.

Intermediate

Job board

Companies, jobs and applications.

Intermediate

Booking app

Calendar bookings and emails.

Advanced

SaaS app

Teams, billing and background jobs.

Advanced

JSON API

API mode app with tokens and tests.

Tips to finish this ruby on rails roadmap

  • Learn by building. Spend at least two thirds of your study time writing code and making projects, not watching videos.
  • Be consistent. One focused hour every day beats a long session once a week. Small daily progress adds up quickly.
  • Share your work. Post your projects on GitHub and LinkedIn. It builds your confidence and helps recruiters find you.
  • Ask for feedback. Join a community, ask questions and review other people’s code. Explaining things to others is one of the fastest ways to learn.
  • Do not chase every new tool. The fundamentals in this ruby on rails roadmap change slowly. Master them first, then explore new libraries.

Career paths and next steps

After this Ruby on Rails roadmap, you can work as a Rails or full stack developer, especially in startups and product companies. Experienced developers become senior engineers or start their own products.

Continue with the SQL roadmap or the backend developer roadmap.

Related roadmaps

Ruby on Rails Roadmap FAQs

Is Ruby on Rails still relevant?

Yes. Rails is actively developed and used by many startups and well-known products.

Should I learn Ruby before Rails?

Yes, at least the basics. Rails code is much easier to understand when you know Ruby.

Is Rails good for beginners?

Yes. Its conventions and generators help beginners build complete apps quickly.

What is Hotwire?

Hotwire is the Rails way to build fast, interactive pages using HTML over the wire with very little custom JavaScript.