Glossary
Ruby and Rails Glossary
Important terms and definitions explained simply
no matching terms
Try adjusting your search query.
1
-
15 minute blog
The 15 minute blog is a famous video recorded in a software conference in Brazil in 2005 where DHH, Ruby on Rails creator, showed the benefits of the framework by building a blog in 15 minutes.
A
-
Active Storage
A Rails framework for attaching files to Active Record models and storing them in cloud services like Amazon S3, Google Cloud Storage, or Microsoft Azure — built into Rails since version 5.2. -
AI agent audit trail
An AI agent audit trail is a record of every action an AI agent takes or tries to take in your app, with the person it acted for, the agent or client that made the call, the tool and arguments, the record it touched, the outcome and the time. -
Associations
Rails associations establish connections between Active Record models. With them, we can define how our models interact and save time an duplication while allowing better model interactions.
B
-
Build vs buy for internal tools
Build vs buy for internal tools is the decision between paying for software another company makes and writing your own for the tools your team runs the business with. In practice there are four options, not two.
C
-
Controllers
Controllers intermediate between models and views by handling users requests and determining the appropriate response to them. -
Convention Over Configuration
A term coined by DHH, Rails framework creator, that states a great preference to use as many convened upon decisions over the extensive use of configuration and customization before hand. -
CSRF
CSRF protection is a built-in Rails feature that blocks cross-site request forgery attacks by validating authenticity tokens on every state-changing request. Enabled by default through protect_from_forgery, it ensures requests originate from your application, not malicious third-party sites. -
cssbundling-rails
A Rails gem that integrates modern CSS bundling tools like Tailwind CSS, Bootstrap, and Dart Sass with Rails applications through Node.js-based processors, replacing traditional sass-rails workflows. -
Custom ERP
A custom ERP is enterprise resource planning software built for one company's own processes, instead of a packaged suite configured to fit them. In practice it is often a set of custom modules around a packaged system for the ledger, payroll and tax.
G
-
Generate a Rails app with bun and no importmap
Creates a new Rails application configured with Bun, an all-in-one JavaScript runtime and bundler that provides extremely fast compilation without requiring Node.js, offering a simplified development environment. -
Generate a Rails app with esbuild and no importmap
Creates a new Rails application configured with esbuild, an extremely fast JavaScript bundler written in Go that provides TypeScript and JSX support with minimal configuration. -
Generate a Rails app with rollup and no importmap
Creates a new Rails application configured with Rollup, a module bundler focused on ES modules and tree-shaking that produces optimized, smaller bundles ideal for libraries and performance-critical applications. -
Generate a Rails app with webpack and no importmap
Creates a new Rails application configured with webpack, the most comprehensive JavaScript bundler offering extensive plugin ecosystem, code splitting, and advanced optimization features for complex applications.
H
-
Helpers
In Rails, helpers are methods that are accessible to views, defined in the `helpers` directory and global by nature. -
Human in the loop for AI agents
Human in the loop is a pattern where an AI agent proposes an action and a person approves or rejects it before it runs. The agent does the work of finding and preparing the change; a named person signs off on it.
I
-
importmap-rails
importmap-rails is the Rails gem that maps module names to files in config/importmap.rb, so the browser loads your JavaScript as native ES modules with no bundler or Node.js build step.
J
-
jsbundling-rails
A Rails gem that provides installers and rake tasks for popular JavaScript bundlers like esbuild, webpack, and rollup, enabling modern JavaScript tooling while maintaining Rails asset pipeline integration.
L
-
Least privilege for AI agents
Least privilege for AI agents means giving an agent only the identity, tools, data and time it needs for the task in front of it. In practice the agent acts as the person who connected it, through that person's permissions, with a narrow credential that expires. -
link_directory
A Sprockets directive that links all files directly inside a specified directory for compilation and public availability, processing only the immediate directory level without recursing into subdirectories. -
link_tree
A Sprockets directive that recursively links all files in a directory tree for compilation and public availability, making them accessible as separate assets without bundling their contents into the current file.
M
-
MCP vs API
A REST API is a set of HTTP endpoints that a program calls because a developer wrote code to call them. MCP (Model Context Protocol) is an open protocol that lets an AI application discover a server's tools at runtime and call them for the person using it. -
Models
The fundamental block of the MVC pattern. Let's learn what they are and best practices -
Multitenancy
Multitenancy is an architecture where one application serves many customers, called tenants, and each tenant sees only its own data. In Rails it is built with a tenant column on every row, a database schema per tenant, or a database per tenant.
O
-
Omakase
Let's learn about “omakase” and what makes Rails a convenient alternative when you want the expert's decision to maximize your productivity
P
-
Propshaft
A modern, streamlined asset pipeline for Rails that replaces Sprockets as the default in Rails 8, focusing on essential asset management while delegating complex processing to specialized external tools. -
Pundit
Pundit is a Ruby gem for authorization in Rails apps. Each model gets a plain Ruby policy class whose methods, like update? and destroy?, decide whether the current user may act on a record, and a nested Scope class decides which records that user can see.
R
-
Rails admin panel framework
A Rails admin panel framework is a gem that mounts inside your Ruby on Rails app and gives your team screens to find, view, create, edit and act on the records in your database, built from your existing models instead of written by hand. -
Ransack
Ransack is a Ruby gem that adds searching and sorting to Rails apps. It turns request params like name_cont=ann into Active Record queries, with form and sort-link helpers for your views, and needs no search server. -
Record-level permissions
Record-level permissions decide access to one specific record based on that record's data, such as who owns it or which team it belongs to. Two users with the same role can see and change different rows of the same table. -
Resize Observer API
A browser API that lets you observe changes to the dimensions of an element and respond with JavaScript — without polling or hacking resize events. -
Role-based access control (RBAC)
Role-based access control (RBAC) is an access model where permissions belong to roles, and users get permissions only through the roles they are assigned. You change what a person can do by changing their role, not by editing their individual rights.
S
-
System of record
A system of record is the system that owns a piece of data. It is the authoritative place where that data is created and changed, and every other copy defers to it when the two disagree.
T
-
The Rails Doctrine
The Rails Doctrine is a set of conventions and design decisions that come out of the box in every Rails application and can vastly improve the experience of developing Rails apps for the majority of cases. -
Turbo
Part of the Hotwire stack, Turbo speeds up Rails web applications by replacing full page loads with targeted HTML swaps — no JSON APIs, no custom JavaScript required.
V
-
Views
Views represent the presentation layer of MVC, rendering data for users through template files or serializers. They map to controller actions and are organized in the app/views directory, focusing exclusively on how information is displayed. -
Visual breakpoint debugging for responsive Rails applications with TailwindCSS
A development-only Rails ERB snippet that displays the current Tailwind CSS breakpoint in a fixed overlay, helping developers debug responsive layouts by showing which breakpoint is active. -
vite_rails
vite_rails is a Ruby gem that lets a Rails app build its JavaScript and CSS with Vite, with hot module replacement in development and a vite build run by assets:precompile in production.
Try Avo for free