# Ruby on Rails

> A Ruby web framework. It moves fast because it has set ways to do things.

**Field:** Software Development  
**Category:** Web Development  
**Also known as:** Rails, RoR

## Think of it like

Think of it like a train on tracks. If you go the way the tracks go, you move very fast.

## Definition

Ruby on Rails is a web framework for the Ruby language. It likes set ways of doing things more than endless choices. If you name files and tables the way it expects, it joins them up for you. It comes with a database layer, migrations, templates and testing. It was first released in 2004 and shaped many later frameworks. Its motto is convention over configuration.

## Example

Rails was created by David Heinemeier Hansson. Lucy builds a first version of her shop in Rails in two weeks.

## Example code

```console
$ rails new shop
```

This makes a new Rails app in a folder called shop.

## Why it matters

Rails showed how fast a small team can build a full web app. Its ideas are everywhere.

## Common mistake

Fighting its naming rules. Rails is fastest when you follow them.

## Three principles

- **Set ways.** Convention over configuration.
- **Full kit.** Database, migrations, tests.
- **Built for speed.** Small teams ship fast.

## Related terms

- [Ruby](https://learn.benibix.com/term/development/ruby)
- [Django](https://learn.benibix.com/term/development/django)
- [Database Migration](https://learn.benibix.com/term/development/database-migration)
- [Object-Relational Mapping (ORM)](https://learn.benibix.com/term/development/orm)

---

Source: https://learn.benibix.com/term/development/ruby-on-rails
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
