Ruby on Rails comes up in almost every conversation about building web applications: at startups that want to ship a product fast, at SaaS companies that have run on it for fifteen years, and at businesses that inherit a Rails app without always knowing what it is. This guide explains what Rails is, how it works, what Rails 8 changes, who uses it, and when it is (or is not) the right choice.
What is Ruby on Rails?
Ruby on Rails is a web development framework: a set of tools and rules that saves you from rewriting, on every project, what all web applications have in common. Reading and writing to a database, handling URLs, rendering pages, sending emails, authenticating users, running background jobs.
It is written in the Ruby language, it is open source and free, including for commercial use. Its stated ambition is to let a small team, or even a single developer, build and run a complete web application.
| Type | Full-stack, server-side web framework |
|---|---|
| Language | Ruby |
| Creator | David Heinemeier Hansson (DHH) |
| First public release | July 2004 (Rails 1.0 in December 2005) |
| License | MIT (free and open source) |
| Architecture | MVC (Model, View, Controller) |
| Principles | Convention over configuration, Don't Repeat Yourself |
| Current major version | Rails 8 (8.0 in November 2024, 8.1 in October 2025) |
| Official website | rubyonrails.org |
Ruby vs Rails: what is the difference?
The two names are often used interchangeably, which causes confusion.
- Ruby is a programming language, created in Japan by Yukihiro Matsumoto and released in 1995. It is designed to be pleasant to read and write. It can be used for scripts, command-line tools or automation, with no connection to the web.
- Rails is a framework written in Ruby, dedicated to web applications. It cannot run without Ruby.
In other words, Ruby is the language and Rails is the toolkit built in that language to make web applications. PHP and Laravel, or Python and Django, have the same relationship.
Where does Ruby on Rails come from?
Rails was not designed in a lab: it was extracted from a real product. David Heinemeier Hansson was building Basecamp, the project management tool of the company 37signals. He pulled out of Basecamp everything that was not specific to that product and published it as open source in 2004.
- 2004: first public release of Rails.
- 2005: Rails 1.0. The framework becomes known through a famous demo, a blog built in fifteen minutes.
- 2007 to 2016: Rails 2 to Rails 5 add REST APIs, the asset pipeline, Action Cable for real time and an API-only mode.
- 2021: Rails 7 ships Hotwire by default, for reactive interfaces without a heavy JavaScript framework.
- 2024: Rails 8 aims to remove external services, using the database for queues and caching, and adding a built-in deployment tool.
This origin explains its character: Rails is designed by and for teams that ship a product, not as an architecture exercise.
How does Ruby on Rails work?
The MVC architecture
A Rails application is split into three layers, following the MVC pattern:
- The model represents data and business rules (a customer, an invoice, an order) and talks to the database.
- The view produces what the user sees: an HTML page, an email, or JSON for an API.
- The controller receives the request, asks the model for the right data and picks the view to return.
The router connects a URL (for example /invoices/42) to the controller action that should answer it.
Convention over configuration
This is the principle behind Rails' speed. Instead of declaring everything in configuration files, Rails applies naming conventions. An Invoice model automatically reads the invoices table, its controller is called InvoicesController and its views live in app/views/invoices/.
The practical consequence: all Rails applications look alike. A Rails developer opening an unknown project knows where to look. That is a real advantage when an application changes hands, for example when you outsource Rails development to a new team.
Don't Repeat Yourself
The second principle, DRY, means writing each piece of information only once. A validation rule declared in the model applies everywhere: forms, API, imports. Rails also ships generators that create, in one command, the model, migration, controller, views and tests for a resource:
bin/rails generate scaffold Invoice number:string amount:decimal customer:references
bin/rails db:migrate
Built-in components
Rails is a "batteries included" framework. Among other things, it ships with:
- Active Record to work with the database in Ruby, with migrations to evolve the schema;
- Action Mailer for emails and Active Job for background jobs;
- Active Storage for files and Action Cable for real time;
- Hotwire (Turbo and Stimulus) for interactivity in the browser;
- security protections enabled by default against SQL injection, XSS and cross-site request forgery (CSRF).
Beyond that, the ecosystem offers thousands of gems, Ruby libraries you add in one line: payments, search, PDF export, admin panels. On the database side, Rails works with SQLite, MySQL and above all PostgreSQL, the most common choice in production.
Ruby on Rails 8: what changes
Rails 8, released in November 2024 and followed by Rails 8.1 in October 2025, pursues a clear goal: fewer dependencies and simpler infrastructure.
- Solid Queue, Solid Cache and Solid Cable store background jobs, cache and real-time messages in the database, where a Redis server was often required.
- Kamal 2 deploys the application to any server with a single command.
- An authentication generator creates sign-in, sessions and password reset, without an external gem.
- Propshaft replaces Sprockets to serve CSS, JavaScript and images, and Thruster speeds up their delivery.
- Rails 8 requires Ruby 3.2 or newer.
These features mostly concern new applications. An existing application can move to Rails 8 while keeping its current tools. The method is detailed in our Rails 8 upgrade guide and on our Rails upgrade service page.
Ruby on Rails versions
Each major Rails version added a building block that developers now use every day. Knowing which version an application runs on tells you a lot about its age and the effort needed to modernise it.
| Version | Released | Main addition |
|---|---|---|
| Rails 1 | 2005 | The MVC framework, Active Record, generators |
| Rails 2 | 2007 | REST routes and resources |
| Rails 3 | 2010 | Merger with Merb, Bundler to manage gems |
| Rails 4 | 2013 | Turbolinks, strong parameters |
| Rails 5 | 2016 | Action Cable (real time), API mode |
| Rails 6 | 2019 | Action Text, Action Mailbox, multiple databases |
| Rails 7 | 2021 | Hotwire by default, import maps, data encryption |
| Rails 8 | 2024 (8.1 in 2025) | Solid Queue, Solid Cache, Solid Cable, Kamal, built-in authentication |
Rails does not maintain old versions forever: each minor version gets bug fixes for a limited time, then security fixes only, then nothing. The current list of supported versions is published in the official maintenance policy. An application on Rails 4, 5 or 6 no longer receives any security fix: that is the signal that a Rails upgrade is due.
To find out which version an application runs, run bin/rails --version at the root of the project, or look for the rails line in Gemfile.lock.
Who uses Ruby on Rails?
Rails powers some of the busiest platforms on the web:
- Shopify, the e-commerce platform, whose core is one of the largest Rails applications in the world;
- GitHub and GitLab, the two main code hosting platforms;
- Basecamp and HEY, the 37signals products where Rails comes from;
- Zendesk, the customer support software;
- Doctolib, the European medical appointment booking platform.
But Rails mostly powers less visible projects: B2B SaaS, business applications (CRM, ERP, internal tools), customer portals, marketplaces, back offices and APIs for mobile apps. At Akolads, for example, it runs the internal tool that powers the wine cellar of Le Baroudeur du Vin, presented on our Ruby on Rails agency page.
Ruby on Rails application examples
In practice, what do people build with Rails? Here are the most common types of applications, and what the framework brings to each.
| Application type | Typical features | What Rails brings |
|---|---|---|
| B2B SaaS | Customer accounts, subscriptions, billing, dashboards | Built-in authentication, background jobs, multi-tenancy through proven gems |
| Custom CRM | Contacts, sales pipeline, follow-ups, interaction history | Fast data modelling with Active Record, e-mails with Action Mailer |
| ERP and internal tools | Inventory, orders, scheduling, accounting exports | Business rules centralised in models, back office built quickly |
| E-commerce | Catalogue, cart, payment, order management | Shopify is built on Rails; Solidus and Spree are open source e-commerce engines for Rails |
| Marketplace | Sellers and buyers, booking, commission, messaging | Payments, real-time notifications with Action Cable, moderation |
| Customer portal or extranet | Customer area, documents, case tracking | File storage with Active Storage, fine-grained access rights |
| API for a mobile app | Authentication, sync, push notifications | API mode, JSON, same business logic as the web application |
For a CRM or an ERP, the real question is often not "Rails or another framework" but "off-the-shelf software or a custom application". Our custom business application page explains how we build them.
Advantages of Ruby on Rails
- Development speed. Conventions, generators and gems make it possible to ship a first product in a few weeks. That is the basis of our Rails MVP development offer.
- Maturity. Over twenty years of existence, fast security fixes, a public maintenance policy and documented upgrade paths.
- Readable, consistent code. Ruby reads almost like English, and conventions make projects familiar to any Rails developer.
- Full-stack in one tool. With Hotwire, a small team builds a modern interface without maintaining a separate React application.
- Lean infrastructure. Since Rails 8, an application can run on a single server with its PostgreSQL database, without Redis or an expensive hosting platform.
- Security by default. Common protections are on without any configuration.
Limits of Ruby on Rails
- A smaller talent pool than JavaScript or PHP. Rails developers tend to be experienced but are rarer, so harder to hire. Teams often rely on dedicated Rails developers from an agency instead.
- Lower raw performance than Go or Java on CPU-heavy workloads. For the vast majority of web applications, the database is the bottleneck, not Ruby.
- Some "magic". Conventions do a lot implicitly. That saves time for those who know them and confuses beginners.
- Upgrades you should not postpone. An application left for years without updates piles up debt that must be paid back version by version. A Rails application audit measures how much.
- Not the best fit for everything. A native mobile app, a game or massive data processing call for other tools, even if Rails can serve as their API.
Rails vs Laravel, Django and Node.js
| Framework | Language | Strength | Typical use |
|---|---|---|---|
| Ruby on Rails | Ruby | Productivity, conventions, integrated full-stack | SaaS, business app, MVP |
| Laravel | PHP | PHP ecosystem, widely available hosting | PHP websites and applications |
| Django | Python | Close to data and AI tooling | Data science related applications |
| Node.js (Express, NestJS) | JavaScript / TypeScript | One language front to back, real time | APIs, highly interactive applications |
We go into detail in Ruby on Rails vs Django and Ruby on Rails vs Symfony. If your question is about the front end, read React or Hotwire with Ruby on Rails.
Where to host a Ruby on Rails application?
A Rails application is not a PHP site: it runs as a long-lived process, with its database and often background jobs. Classic shared hosting, designed for PHP, is rarely a good fit. There are three families of solutions.
| Option | Examples | For whom |
|---|---|---|
| Managed platform (PaaS) | Heroku, Render, Fly.io, Scalingo (French host) | Teams without server skills, quick start, higher cost as usage grows |
| Dedicated server or VPS with Kamal | OVHcloud, Scaleway, Hetzner | The best balance of cost and control since Rails 8, data hosted in Europe |
| Managed cloud | AWS, Google Cloud, Azure | Large teams, scaling needs or enterprise constraints |
Since Rails 7.1, every new application is generated with a production-ready Dockerfile, and Rails 8 ships Kamal to deploy that container to any server. With Solid Queue and Solid Cache, a mid-sized application fits on a single server with PostgreSQL, without Redis. Once in production, Rails maintenance covers monitoring and server updates.
Starting or taking over a Ruby on Rails project
Depending on your situation, the starting point differs:
- You have a product idea: start with an MVP limited to the essential features, with our Rails MVP development service.
- You have a Rails application and no developer: start with an assessment through a Rails audit.
- Your application runs on an old version: plan a step-by-step Rails upgrade.
- Your team is short-handed: Rails maintenance or Rails outsourcing takes over.
Rails is not the trendiest framework, it is one of the most cost-effective: a small team ships fast with it, and another team can take over the code years later.
FAQ
What is Ruby on Rails in one sentence?
Ruby on Rails is an open source web framework written in Ruby that provides everything needed to build a server-side web application: database, business logic, pages, emails, background jobs and deployment, following conventions shared by every Rails project.
Is Ruby on Rails free?
Yes. Ruby on Rails is free software released under the MIT license. It is free to use, including commercially, and its source code is public on GitHub. The cost of a Rails project comes from development and hosting, not from the framework.
Is Ruby on Rails still used in 2026?
Yes. Rails is actively maintained, with a new major version, Rails 8, released in November 2024, followed by Rails 8.1 in October 2025. Platforms such as Shopify, GitHub, GitLab, Zendesk and Doctolib run on Rails, and the framework remains a common choice for SaaS products and business applications.
Is Ruby on Rails front-end or back-end?
Rails is first and foremost a back-end framework: it runs on the server and handles the database and business logic. It is also full-stack, since it renders HTML pages and ships with Hotwire (Turbo and Stimulus) for reactive interfaces without a separate JavaScript framework. It can also serve as an API only, for a React front end or a mobile app.
What is the difference between Ruby and Ruby on Rails?
Ruby is a programming language created by Yukihiro Matsumoto in 1995. Ruby on Rails is a framework written in that language, released in 2004, used to build web applications. Ruby can be used without Rails, but Rails cannot run without Ruby.
Is Ruby on Rails hard to learn?
Ruby is a readable language and Rails enforces a clear structure, so you get a working application quickly. The difficulty comes later: understanding what the conventions do for you, and modelling data well. A developer who already knows another web language becomes productive within a few weeks.
What are the Ruby on Rails versions?
The major Rails versions are Rails 1 (2005), 2 (2007), 3 (2010), 4 (2013), 5 (2016), 6 (2019), 7 (2021) and 8 (2024), followed by Rails 8.1 in October 2025. Only recent versions receive security fixes: the current list is on the rubyonrails.org maintenance page.
Where should I host a Ruby on Rails application?
On a managed platform such as Heroku, Render, Fly.io or Scalingo to start without server skills, or on a dedicated server or VPS (OVHcloud, Scaleway, Hetzner) with Kamal, the deployment tool shipped with Rails 8. Shared hosting designed for PHP is rarely suitable for a Rails application.