Skip to content
BENIBIX Learn

Ruby on Rails

Development🌐 Web DevelopmentFrameworks

Also known as Rails, RoR

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

Think of it like

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

Example

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

Why it matters

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

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 code

console
$ rails new shop
This makes a new Rails app in a folder called shop.

Common mistake

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

Key takeaways

  1. 1
    Set ways. Convention over configuration.
  2. 2
    Full kit. Database, migrations, tests.
  3. 3
    Built for speed. Small teams ship fast.