Repolode
rails

rails/rails

Ruby on Rails is a full-stack MVC web framework for building database-backed web applications in Ruby.

Stars
58,843
Forks
25,229
Open issues
1,686
Last commit
4 hours ago

What is it?

Rails is a web application framework that bundles what is needed to build database-backed web applications following the Model-View-Controller pattern. Models are built on Active Record, which maps database rows to Ruby objects and holds business logic. Views are templates, most often ERB files that mix HTML with embedded Ruby, and controllers receive requests routed by Action Dispatch and return HTML, JSON, XML or other responses.

Beyond the core MVC stack, Rails includes Action Mailer for sending email, Action Mailbox for receiving it, Active Job for background jobs across multiple queue backends, Action Cable for WebSockets, Active Storage for cloud and local file attachments, and Action Text for rich text. Several components, including Active Record, Active Model, Action Pack and Action View, can also be used independently outside Rails.

A new application is created with the `rails new` command and started with `bin/rails server`. The project is maintained as a monorepo of these sub-frameworks and is released under the MIT License.

Key features

  • 01Model-View-Controller structure for database-backed web applications
  • 02Active Record maps database rows to Ruby model objects
  • 03Action Mailer and Action Mailbox handle sending and receiving email
  • 04Active Job runs background jobs on multiple queuing backends
  • 05Action Cable integrates WebSockets; Active Storage attaches cloud and local files

Use cases

  • Building database-backed web applications with server-rendered HTML
  • Creating JSON or XML APIs backed by a relational database
  • Adding background jobs, email and file uploads to an existing Ruby web app

Quick start

  1. 1

    Install Rails with RubyGems

    gem install rails
  2. 2

    Create a new Rails application

    rails new myapp
  3. 3

    Change into the app directory and start the web server

    cd myapp && bin/rails server
  4. 4

    Open http://localhost:3000 in your browser to see the welcome screen

Things to know

  • Requires a Ruby installation, so you need to set up the Ruby toolchain first.

Topics

FAQ

What is rails?
Ruby on Rails is a full-stack MVC web framework for building database-backed web applications in Ruby. Rails is a web application framework that bundles what is needed to build database-backed web applications following the Model-View-Controller pattern. Models are built on Active Record, which maps database rows to Ruby objects and holds business logic. Views are templates, most often ERB files that mix HTML with embedded Ruby, and controllers receive requests routed by Action Dispatch and return HTML, JSON, XML or other responses.
Is rails free to use? What license does it have?
rails is open source under the MIT license. Check the license terms before using it in commercial products.
Is rails still maintained?
Actively maintained. The last commit to rails was on Oct 21, 2026.
What can I use rails for?
Building database-backed web applications with server-rendered HTML Creating JSON or XML APIs backed by a relational database Adding background jobs, email and file uploads to an existing Ruby web app
How do I install rails?
Install Rails with RubyGems: gem install rails Create a new Rails application: rails new myapp Change into the app directory and start the web server: cd myapp && bin/rails server Open http://localhost:3000 in your browser to see the welcome screen
Where can I get rails?
The source code and installation instructions are on GitHub: https://github.com/rails/rails

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects