Capitalize "Rails" [ci-skip]
This commit is contained in:
parent
bf6c20edb7
commit
b0048c787a
@ -10,7 +10,7 @@ module ClassMethods
|
|||||||
# validators can be overridden inside specific classes by creating
|
# validators can be overridden inside specific classes by creating
|
||||||
# custom validator classes in their place such as PresenceValidator.
|
# custom validator classes in their place such as PresenceValidator.
|
||||||
#
|
#
|
||||||
# Examples of using the default rails validators:
|
# Examples of using the default Rails validators:
|
||||||
#
|
#
|
||||||
# validates :username, absence: true
|
# validates :username, absence: true
|
||||||
# validates :terms, acceptance: true
|
# validates :terms, acceptance: true
|
||||||
|
@ -469,7 +469,7 @@ options_from_collection_for_select(@product.sizes, :name, :id, :disabled => lamb
|
|||||||
```
|
```
|
||||||
|
|
||||||
* Lead Contributor: [Tekin Suleyman](http://tekin.co.uk/)
|
* Lead Contributor: [Tekin Suleyman](http://tekin.co.uk/)
|
||||||
* More Information: [New in rails 2.3 - disabled option tags and lambdas for selecting and disabling options from collections](https://tekin.co.uk/2009/03/new-in-rails-23-disabled-option-tags-and-lambdas-for-selecting-and-disabling-options-from-collections)
|
* More Information: [New in Rails 2.3 - disabled option tags and lambdas for selecting and disabling options from collections](https://tekin.co.uk/2009/03/new-in-rails-23-disabled-option-tags-and-lambdas-for-selecting-and-disabling-options-from-collections)
|
||||||
|
|
||||||
### A Note About Template Loading
|
### A Note About Template Loading
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ Major Features
|
|||||||
|
|
||||||
### Generate Dockerfiles for new Rails applications
|
### Generate Dockerfiles for new Rails applications
|
||||||
|
|
||||||
[Default Docker support](https://github.com/rails/rails/pull/46762) to new rails applications.
|
[Default Docker support](https://github.com/rails/rails/pull/46762) to new Rails applications.
|
||||||
When generating a new application, Rails will now include Docker-related files in the application.
|
When generating a new application, Rails will now include Docker-related files in the application.
|
||||||
|
|
||||||
These files serve as a foundational setup for deploying your Rails application in a
|
These files serve as a foundational setup for deploying your Rails application in a
|
||||||
|
@ -463,7 +463,7 @@ end
|
|||||||
```
|
```
|
||||||
|
|
||||||
If you know in advance that your variants will be accessed, you can specify that
|
If you know in advance that your variants will be accessed, you can specify that
|
||||||
rails should generate them ahead of time:
|
Rails should generate them ahead of time:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
class User < ApplicationRecord
|
class User < ApplicationRecord
|
||||||
|
@ -31,7 +31,7 @@ $ cd myapp
|
|||||||
$ bin/rails generate
|
$ bin/rails generate
|
||||||
```
|
```
|
||||||
|
|
||||||
NOTE: To create a rails application we use the `rails` global command which uses
|
NOTE: To create a Rails application we use the `rails` global command which uses
|
||||||
the version of Rails installed via `gem install rails`. When inside the
|
the version of Rails installed via `gem install rails`. When inside the
|
||||||
directory of your application, we use the `bin/rails` command which uses the
|
directory of your application, we use the `bin/rails` command which uses the
|
||||||
version of Rails bundled with the application.
|
version of Rails bundled with the application.
|
||||||
|
@ -222,7 +222,7 @@ def self.class_option(name, options = {}) # :nodoc:
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Returns the default source root for a given generator. This is used internally
|
# Returns the default source root for a given generator. This is used internally
|
||||||
# by rails to set its generators source root. If you want to customize your source
|
# by Rails to set its generators source root. If you want to customize your source
|
||||||
# root, you should use source_root.
|
# root, you should use source_root.
|
||||||
def self.default_source_root
|
def self.default_source_root
|
||||||
return unless base_name && generator_name
|
return unless base_name && generator_name
|
||||||
|
Loading…
Reference in New Issue
Block a user