サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
世界禁煙デー
guides.rubyonrails.org
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
Highlights in Rails 5.0: Action Cable Rails API Active Record Attributes API Test Runner Exclusive use of rails CLI over Rake Sprockets 3 Turbolinks 5 Ruby 2.2.2+ required 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.0If y
This guide documents autoloading, reloading, and eager loading in Rails applications. In an ordinary Ruby program, you explicitly load the files that define classes and modules you want to use. For example, the following controller refers to ApplicationController and Post, and you'd normally issue require calls for them: # DO NOT DO THIS. require "application_controller" require "post" # DO NOT DO
This guide should provide you with all you need to get started using model classes. Active Model allows for Action Pack helpers to interact with plain Ruby objects. Active Model also helps build custom ORMs for use outside of the Rails framework. After reading this guide, you will know: How an Active Record model behaves. How Callbacks and validations work. How serializers work. How Active Model i
Support of the Rails framework is divided into four groups: New features, bug fixes, security issues, and severe 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 c
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 create callback methods that respond to events in the object life cycle. How to create special classes that encapsulate common behavior for your callbacks. 1 The Object Life CycleDuring the normal
Migrations 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 DSL to describe changes to your tables. After reading this guide, you will know: The generators you can use to create them. The methods Active Record provides to manipulate your database. The rails commands that m
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.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
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 s
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
This guide covers how you can become a part of the ongoing development of Ruby on Rails. After reading this guide, you will know: How to use GitHub to report issues. How to clone main and run the test suite. How to help resolve existing issues. How to contribute to the Ruby on Rails documentation. How to contribute to the Ruby on Rails code. Ruby on Rails is not "someone else's framework". Over th
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 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. As you can see, our validation lets us kno
This guide is an introduction to Active Record. After reading this guide, you will know: What Object Relational Mapping and Active Record are and how they are used in Rails. How Active Record fits into the Model-View-Controller paradigm. How to use Active Record models to manipulate data stored in a relational database. Active Record schema naming conventions. The concepts of database migrations,
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
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 ha
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
This guide covers the asset pipeline. After reading this guide, you will know: What the asset pipeline is and what it does. How to properly organize your application assets. The benefits of the asset pipeline. How to add a pre-processor to the pipeline. How to package assets with a gem. 1 What is the Asset Pipeline?The asset pipeline provides a framework to handle the delivery of JavaScript and CS
Highlights in Rails 3.1: Streaming Reversible Migrations Assets Pipeline jQuery as the default JavaScript library 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.1If you're upgrading an existing application, it's a great idea
This guide explains the internals of the initialization process in Rails. It is an extremely in-depth guide and recommended for advanced Rails developers. After reading this guide, you will know: How to use bin/rails server. The timeline of Rails' initialization sequence. Where different files are required by the boot sequence. How the Rails::Server interface is defined and used. This guide goes t
次のページ
このページを最初にブックマークしてみませんか?
『Ruby on Rails Guides』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く