# Ruby on Rails

> Build products quickly with Ruby and Rails' convention-over-configuration approach. Free notes, key concepts, resources and a mini project.

Canonical: https://www.internhack.in/roadmaps/tracks/backend/ruby
Last updated: 2026-11-28

Build products quickly with Ruby and Rails' convention-over-configuration approach.

Beginner · about 40 hours · difficulty 2/5

Learn first: [HTTP in Depth](https://www.internhack.in/roadmaps/tracks/backend/http-protocol)

**Ruby** is a expressive language designed for developer happiness, and **Ruby on Rails** is the framework that popularized conventions many others copied: MVC structure, migrations, an ActiveRecord ORM and generators. Startups and companies like Shopify and GitHub have run large Rails codebases.

### What to learn

- Ruby basics: blocks, iterators, symbols, modules, and its object model where everything is an object.
- **Bundler** and gems for dependencies.
- Rails: routing, controllers, **ActiveRecord** models, associations, validations, migrations and **Active Job** for background work.
- API-only mode (`rails new app --api`) if you are building a JSON backend.

### Why teams pick it

Very high productivity for CRUD-heavy products. Following the conventions means a new developer can find their way around any Rails app.

### Pitfalls

- N+1 queries hidden behind ActiveRecord associations; learn `includes` early.
- "Fat models" that grow into thousands of lines. Extract service objects when logic gets complex.

You are ready to move on when you can build a Rails API with associations, validations, background jobs and request specs.

## Key concepts

- **Ruby language basics**
- **Bundler and gems**
- **Rails MVC and routing**
- **ActiveRecord**
- **Active Job and Sidekiq**
- **RSpec**

## Other options for this step

- [JavaScript on the Server with Node.js](https://www.internhack.in/roadmaps/tracks/backend/nodejs): Learn Node.js, its event loop, npm and a web framework like Express or Fastify to build HTTP APIs.
- [Python for Backend Development](https://www.internhack.in/roadmaps/tracks/backend/python): Use Python with Django, Flask or FastAPI to build readable, productive web services.
- [Go for Backend Services](https://www.internhack.in/roadmaps/tracks/backend/go): Learn Go's simple syntax, goroutines and standard library to build fast, easily deployed services.
- [Java and the Spring Ecosystem](https://www.internhack.in/roadmaps/tracks/backend/java): Build enterprise-grade services with Java, Maven or Gradle and Spring Boot.
- [C# and ASP.NET Core](https://www.internhack.in/roadmaps/tracks/backend/csharp): Build cross-platform web APIs with C#, .NET and ASP.NET Core.
- [PHP and Laravel](https://www.internhack.in/roadmaps/tracks/backend/php): Use modern PHP with Laravel or Symfony, the stack behind a large share of the web.
- [Rust for High-Performance Backends](https://www.internhack.in/roadmaps/tracks/backend/rust): Use Rust with Axum or Actix for memory-safe, very fast services, accepting a steeper learning curve.

## Mini project

Build a Rails API-only app for a book club with users, books and reviews, including eager loading to avoid N+1 queries.

## Check yourself

What does Rails' includes method do, and what problem does it prevent?

## Free resources

- [Ruby documentation](https://www.ruby-lang.org/en/documentation/) (ruby-lang.org)
- [Ruby on Rails Guides](https://guides.rubyonrails.org/) (Rails)

Previous: [PHP and Laravel](https://www.internhack.in/roadmaps/tracks/backend/php) · Next: [Rust for High-Performance Backends](https://www.internhack.in/roadmaps/tracks/backend/rust)

## More in Pick One Server Language

- [JavaScript on the Server with Node.js](https://www.internhack.in/roadmaps/tracks/backend/nodejs)
- [Python for Backend Development](https://www.internhack.in/roadmaps/tracks/backend/python)
- [Go for Backend Services](https://www.internhack.in/roadmaps/tracks/backend/go)
- [Java and the Spring Ecosystem](https://www.internhack.in/roadmaps/tracks/backend/java)
- [C# and ASP.NET Core](https://www.internhack.in/roadmaps/tracks/backend/csharp)
- [PHP and Laravel](https://www.internhack.in/roadmaps/tracks/backend/php)
- [Ruby on Rails](https://www.internhack.in/roadmaps/tracks/backend/ruby)
- [Rust for High-Performance Backends](https://www.internhack.in/roadmaps/tracks/backend/rust)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Backend Developer Roadmap](https://www.internhack.in/roadmaps/tracks/backend)
