Active Job BasicsThis guide provides you with all you need to get started in creating, enqueuing and executing background jobs.After reading this guide, you will know: How to create and enqueue jobs. How to configure and use Solid Queue. How to run jobs in the background. How to send emails from your application asynchronously.| Ruby on Rails Guides
Action Controller OverviewIn this guide, you will learn how controllers work and how they fit into the request cycle in your application.After reading this guide, you will know how to: Follow the flow of a request through a controller. Access parameters passed to your controller. Use Strong Parameters and permit values. Store data in the cookie, the session, and the flash. Work with action callbacks to execute code during request processing. Use the Request and Response Objects.| Ruby on Rails Guides
Rails Routing from the Outside InThis guide covers the user-facing features of Rails routing.After reading this guide, you will know: How to interpret the code in config/routes.rb. How to construct your own routes, using either the preferred resourceful style or the match method. How to declare route parameters, which are passed onto controller actions. How to automatically create paths and URLs using route helpers. Advanced techniques such as creating constraints and mounting Rack endpoints.| Ruby on Rails Guides
Composite Primary KeysThis guide is an introduction to composite primary keys for database tables.After reading this guide you will be able to: Create a table with a composite primary key Query a model with a composite primary key Enable your model to use a composite primary key for queries and associations Create forms for models that use composite primary keys Extract composite primary keys from controller parameters Use database fixtures for tables with composite primary keys| Ruby on Rails Guides
Active Record CallbacksThis guide teaches you how to hook into the life cycle of your Active Record objects.After reading this guide, you will know: When certain events occur during the life of an Active Record object. How to register, run, and skip callbacks that respond to these events. How to create relational, association, conditional, and transactional callbacks. How to create objects that encapsulate common behavior for your callbacks to be reused.| Ruby on Rails Guides
Securing Rails ApplicationsThis guide describes common security problems in web applications and how to avoid them with Rails.After reading this guide, you will know: How to use the built-in authentication generator. All countermeasures that are highlighted. The concept of sessions in Rails, what to put in there and popular attack methods. How just visiting a site can be a security problem (with CSRF). What you have to pay attention to when working with files or providing an administration in...| Ruby on Rails Guides
Active Storage OverviewThis guide covers how to attach files to your Active Record models.After reading this guide, you will know: How to attach one or many files to a record. How to delete an attached file. How to link to an attached file. How to use variants to transform images. How to generate an image representation of a non-image file, such as a PDF or a video. How to send file uploads directly from browsers to a storage service, bypassing your application servers. How to clean up files ...| Ruby on Rails Guides
Debugging Rails ApplicationsThis guide introduces techniques for debugging Ruby on Rails applications.After reading this guide, you will know: The purpose of debugging. How to track down problems and issues in your application that your tests aren't identifying. The different ways of debugging. How to analyze the stack trace.| Ruby on Rails Guides
Active Support Core ExtensionsActive Support is the Ruby on Rails component responsible for providing Ruby language extensions and utilities.It offers a richer bottom-line at the language level, targeted both at the development of Rails applications, and at the development of Ruby on Rails itself.After reading this guide, you will know: What Core Extensions are. How to load all extensions. How to cherry-pick just the extensions you want. What extensions Active Support provides.| Ruby on Rails Guides
Error Reporting in Rails ApplicationsThis guide introduces ways to manage errors in a Rails application.After reading this guide, you will know: How to use Rails' error reporter to capture and report errors. How to create custom subscribers for your error-reporting service.| Ruby on Rails Guides
Upgrading Ruby on RailsThis guide provides steps to be followed when you upgrade your applications to a newer version of Ruby on Rails. These steps are also available in individual release guides.| Ruby on Rails Guides
Rails on RackThis guide covers Rails integration with Rack and interfacing with other Rack components.After reading this guide, you will know: How to use Rack Middlewares in your Rails applications. Action Pack's internal Middleware stack. How to define a custom Middleware stack.| Ruby on Rails Guides
The Asset PipelineThis guide explains how to handle essential asset management tasks.After reading this guide, you will know: What is an asset pipeline. The main features of Propshaft, and how to set it up. How to migrate from Sprockets to Propshaft. How to use other libraries for more advanced asset management.| Ruby on Rails Guides
Layouts and Rendering in RailsThis guide covers the basic layout features of Action Controller and Action View.After reading this guide, you will know: How to use the various rendering methods built into Rails. How to create layouts with multiple content sections. How to use partials to DRY up your views. How to use nested layouts (sub-templates).| Ruby on Rails Guides
Ruby on Rails 6.0 Release NotesHighlights in Rails 6.0: Action Mailbox Action Text Parallel Testing Action Cable Testing These release notes cover only the major changes. To learn about various bug fixes and changes, please refer to the changelogs or check out the list of commits in the main Rails repository on GitHub.| Ruby on Rails Guides
Action View OverviewAfter reading this guide, you will know: What Action View is and how to use it with Rails. How best to use templates, partials, and layouts. How to use localized views.| Ruby on Rails Guides
Action View Form HelpersForms are a common interface for user input in web applications. However, form markup can be tedious to write and maintain because of the need to handle form controls, naming, and attributes. Rails simplifies this by providing view helpers, which are methods that output HTML form markup. This guide will help you understand the different helper methods and when to use each.After reading this guide, you will know: How to create basic forms, such as a search form. How to ...| Ruby on Rails Guides
Autoloading and Reloading ConstantsThis guide documents how autoloading and reloading works in zeitwerk mode.After reading this guide, you will know: Related Rails configuration Project structure Autoloading, reloading, and eager loading Single Table Inheritance And more| Ruby on Rails Guides
Active Record MigrationsMigrations are a feature of Active Record that allows you to evolve your database schema over time. Rather than write schema modifications in pure SQL, migrations allow you to use a Ruby Domain Specific Language (DSL) to describe changes to your tables.After reading this guide, you will know: Which generators you can use to create migrations. Which methods Active Record provides to manipulate your database. How to change existing migrations and update your schema. How ...| Ruby on Rails Guides
Action Text OverviewThis guide provides you with all you need to get started in handling rich text content.After reading this guide, you will know: What Action Text is, and how to install and configure it. How to create, render, style, and customize rich text content. How to handle attachments.| Ruby on Rails Guides
Active Record AssociationsThis guide covers the association features of Active Record.After reading this guide, you will know how to: Declare associations between Active Record models. Understand the various types of Active Record associations. Use the methods added to your models by creating associations.| Ruby on Rails Guides
Active Record EncryptionThis guide covers encrypting your database information using Active Record.After reading this guide, you will know: How to set up database encryption with Active Record. How to migrate unencrypted data. How to make different encryption schemes coexist. How to use the API. How to configure the library and how to extend it.| Ruby on Rails Guides
Maintenance Policy for Ruby on RailsSupport of the Rails framework is divided into three groups: New features, bug fixes, and security issues. They are handled as follows, all versions, except for security releases, in X.Y.Z, format.| Ruby on Rails Guides
Testing Rails ApplicationsThis guide covers built-in mechanisms in Rails for testing your application.After reading this guide, you will know: Rails testing terminology. How to write unit, functional, integration, and system tests for your application. Other popular testing approaches and plugins.| Ruby on Rails Guides
Getting Started with RailsThis guide covers getting up and running with Ruby on Rails.After reading this guide, you will know: How to install Rails, create a new Rails application, and connect your application to a database. The general layout of a Rails application. The basic principles of MVC (Model, View, Controller) and RESTful design. How to quickly generate the starting pieces of a Rails application. How to deploy your app to production using Kamal.| Ruby on Rails Guides
Action Mailer BasicsThis guide covers sending emails from your Rails application.After reading this guide, you will know: How to generate and edit Action Mailer classes and mailer views. How to send attachments and multipart emails. How to use Action Mailer callbacks. How to configure Action Mailer for your environment. How to preview emails and test your Action Mailer classes.| Ruby on Rails Guides
Active Record Query InterfaceThis guide covers different ways to retrieve data from the database using Active Record.After reading this guide, you will know: How to find records using a variety of methods and conditions. How to specify the order, retrieved attributes, grouping, and other properties of the found records. How to use eager loading to reduce the number of database queries needed for data retrieval. How to use dynamic finder methods. How to use method chaining to use multiple Acti...| Ruby on Rails Guides
Action Cable OverviewIn this guide, you will learn how Action Cable works and how to use WebSockets to incorporate real-time features into your Rails application.After reading this guide, you will know: What Action Cable is and its integration backend and frontend How to set up Action Cable How to set up channels Deployment and Architecture setup for running Action Cable| Ruby on Rails Guides
Multiple Databases with Active RecordThis guide covers using multiple databases with your Rails application.After reading this guide you will know: How to set up your application for multiple databases. How automatic connection switching works. How to use horizontal sharding for multiple databases. What features are supported and what's still a work in progress.| Ruby on Rails Guides
Configuring Rails ApplicationsThis guide covers the configuration and initialization features available to Rails applications.After reading this guide, you will know: How to adjust the behavior of your Rails applications. How to add additional code to be run at application start time.| Ruby on Rails Guides
Caching with Rails: An OverviewThis guide is an introduction to speeding up your Rails application with caching.After reading this guide, you will know: What caching is. The types of caching strategies. How to manage the caching dependencies. Solid Cache - a database-backed Active Support cache store. Other cache stores. Cache keys. Conditional GET support.| Ruby on Rails Guides
Active Record BasicsThis guide is an introduction to Active Record.After reading this guide, you will know: How Active Record fits into the Model-View-Controller (MVC) paradigm. What Object Relational Mapping and Active Record patterns are and how they are used in Rails. How to use Active Record models to manipulate data stored in a relational database. Active Record schema naming conventions. The concepts of database migrations, validations, callbacks, and associations.| Ruby on Rails Guides
Action View HelpersAfter reading this guide, you will know: How to format dates, strings, and numbers. How to work with text and tags. How to link to images, videos, stylesheets, etc. How to work with Atom feeds and JavaScript in the views. How to cache, capture, debug and sanitize content.| Ruby on Rails Guides
Active Record ValidationsThis guide teaches you how to validate the state of objects before they go into the database using Active Record's validations feature.After reading this guide, you will know: How to use the built-in Active Record validation helpers. How to create your own custom validation methods. How to work with the error messages generated by the validation process.| Ruby on Rails Guides