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
Updated 2024-09-17 to reflect updated PgBouncer support for protocol-level prepared statements 🐘 To start, I want to say that I’m appreciative that PgBouncer exists and the work its open source maintainers put into it. I also love working with PostgreSQL, and I’m thankful for the incredible amount of work and improvements that go into it as well. I also think community and industry enthusiasm around Postgres is at an all time high.| jpcamara.com
A bit more than two years ago, as part of my work in Shopify’s Ruby and Rails Infrastructure team, I released a new Ruby HTTP server called Pitchfork.| byroot’s blog
In any Rails application that deals with large amounts of records, you will most certainly reach for pagination to "window" your data instead of rendering it in one long list.| RoRvsWild
Discover how to override a class or instance method without editing its source file in Ruby on Rails.| All about coding
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
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
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
Active Record Relation.| api.rubyonrails.org
With the built-in rescue_responses setting, you can map exceptions to error pages in a simple, declarative way. It automatically renders JSON, too!| mattbrictson.com
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
Deciding where it exists. Deciding what to do about it. Convincing non-devs that it's worth doing. And then actually fixing it.| ghiculescu.substack.com
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
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
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
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
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