Skip to main content

Ruby on Rails

Overview

Ruby on Rails (Rails) is a server-side MVC framework for Ruby that popularized convention over configuration, scaffolding, and integrated tooling (Active Record, Action Pack, Active Job). It remains a strong choice for full-stack product teams shipping CRUD-heavy apps quickly.

Key concepts

  • MVC — Models (Active Record), views (ERB/Hotwire), controllers.
  • Migrations — Schema evolution in Ruby DSL.
  • RESTful routing — Resourceful routes map cleanly to controllers.
  • Active Record — ORM with validations, callbacks, associations.
  • Hotwire — Turbo + Stimulus for modern HTML-over-the-wire UX.

Rails request cycle

Sample: route + controller

# config/routes.rb
Rails.application.routes.draw do
get '/api/health', to: 'health#show'
end

# app/controllers/health_controller.rb
class HealthController < ApplicationController
def show
render json: { ok: true }
end
end

References