サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
デスク環境を整える
guides.rubyonrails.org
This guide covers performance and concurrency configuration for deploying your production Ruby on Rails application. After reading this guide, you will know: Whether to use Puma, the default application server How to configure important performance settings for Puma How to begin performance testing your application settings This guide focuses on web servers, which are the primary performance-sensi
Highlights in Rails 5.2: Active Storage Redis Cache Store HTTP/2 Early Hints Credentials Content Security Policy 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. 1 Upgrading to Rails 5.2If you're upgrading an existing application, it's a great idea
In this guide you will learn: What Rails provides for API-only applications How to configure Rails to start without any browser features How to decide which middleware you will want to include How to decide which modules to use in your controller 1 What is an API Application?Traditionally, when people said that they used Rails as an "API", they meant providing a programmatically accessible API alo
Highlights in Rails 5.1: Yarn Support Optional Webpack support jQuery no longer a default dependency System tests Encrypted secrets Parameterized mailers Direct & resolved routes Unification of form_for and form_tag into form_with 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 ma
A Rails plugin is either an extension or a modification of the core framework. Plugins provide: a way for developers to share bleeding-edge ideas without hurting the stable code base a segmented architecture so that units of code can be fixed or updated on their own release schedule an outlet for the core developers so that they don’t have to include every cool new feature under the sun After read
In 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 1. What is Action Cable?Action Cable seamlessl
store_listing = StoreListing.new(price_in_cents: '10.1') # before store_listing.price_in_cents # => BigDecimal.new(10.1) StoreListing.new.my_string # => "original default" class StoreListing < ActiveRecord::Base attribute :price_in_cents, :integer # custom type attribute :my_string, :string, default: "new default" # default value attribute :my_default_proc, :datetime, default: -> { Time.now } # de
This 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
Support 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. 1 VersioningRails follows a shifted version of semver: Patch Z Only bug fixes, no API changes, no new features. Except as necessary for security fixes. Minor Y New features, may contain API changes (Ser
This 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 behav
This 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. 1 What is Active Job?Active Job is a framework in Rails designed for declaring backgro
Active Support is a part of core Rails that provides Ruby language extensions, utilities, and other things. One of the things it includes is an instrumentation API that can be used inside an application to measure certain actions that occur within Ruby code, such as those inside a Rails application or the framework itself. It is not limited to Rails, however. It can be used independently in other
This guide covers PostgreSQL specific usage of Active Record. After reading this guide, you will know: How to use PostgreSQL's datatypes. How to use UUID primary keys. How to include non-key columns in indexes. How to use deferrable foreign keys. How to use unique constraints. How to implement exclusion constraints. How to implement full text search with PostgreSQL. How to back your Active Record
Highlights in Rails 4.2: Active Job Asynchronous mails Adequate Record Web Console Foreign key support These release notes cover only the major changes. To learn about other features, bug fixes, and changes, please refer to the changelogs or check out the list of commits in the main Rails repository on GitHub. 1 Upgrading to Rails 4.2If you're upgrading an existing application, it's a great idea t
This guide will provide you with what you need to get started using Active Model. Active Model provides a way for Action Pack and Action View helpers to interact with plain Ruby objects. It also helps to build custom ORMs for use outside of the Rails framework. After reading this guide, you will know: What Active Model is, and how it relates to Active Record. The different modules that are include
This guide covers the various ways of performance testing a Ruby on Rails application. By referring to this guide, you will be able to: Understand the various types of benchmarking and profiling metrics Generate performance and benchmarking tests Install and use a GC-patched Ruby binary to measure memory usage and object allocation Understand the benchmarking information provided by Rails inside t
Highlights in Rails 4.1: Spring application preloader config/secrets.yml Action Pack variants Action Mailer previews 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. 1 Upgrading to Rails 4.1If you're upgrading an existing application, it's a great i
Application templates are simple Ruby files containing DSL for adding gems, initializers, etc. to your freshly created Rails project or an existing Rails project. After reading this guide, you will know: How to use templates to generate/customize Rails applications. How to write your own reusable application templates using the Rails template API. 1 UsageTo apply a template, you need to provide th
This 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 databa
This guide teaches you how to validate Active Record objects before saving them to the database using Active Record's validations feature. After reading this guide, you will know: How to use the built-in Active Record validations and options. How to check the validity of objects. How to create conditional and strict validations. How to create your own custom validation methods. How to work with th
This guide covers the options for integrating JavaScript functionality into your Rails application, including the options you have for using external JavaScript packages and how to use Turbo with Rails. After reading this guide, you will know: How to use Rails without the need for a Node.js, Yarn, or a JavaScript bundler. How to create a new Rails application using import maps, Bun, esbuild, Rollu
Highlights in Rails 4.0: Ruby 2.0 preferred; 1.9.3+ required Strong Parameters Turbolinks Russian Doll Caching 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. 1 Upgrading to Rails 4.0If you're upgrading an existing application, it's a great idea to
This 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. 1. General AdviceBefore attempting to upgrade an existing application, you should be sure you have a good reason to upgrade. You need to balance several factors: the need for new features, the increasing difficulty of finding
In this guide you will learn about engines and how they can be used to provide additional functionality to their host applications through a clean and very easy-to-use interface. After reading this guide, you will know: What makes an engine. How to generate an engine. How to build features for the engine. How to hook the engine into an application. How to override engine functionality in the appli
Active 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 extensi
Highlights in Rails 3.2: Faster Development Mode New Routing Engine Automatic Query Explains Tagged Logging 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. 1. Upgrading to Rails 3.2If you're upgrading an existing application, it's a great idea to h
These guides are designed to make you immediately productive with Rails, and to help you understand how all of the pieces fit together. There are two different versions of the Guides site, and you should be sure to use the one that applies to your situation: Current Release version - based on Rails 2.3 Edge version - based on the current Rails master branch Rails Guides are a result of the ongoing
This guide teaches you how to hook into the life cycle of your Active Record objects. You will learn how to validate the state of objects before they go into the database, and how to perform custom operations at certain points in the object life cycle. After reading this guide and trying out the presented concepts, we hope that you’ll be able to: Understand the life cycle of Active Record objects
次のページ
このページを最初にブックマークしてみませんか?
『Ruby on Rails Guides』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く