mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Added instructions of latest bundler install + modified the on: :save option description in validations
This commit is contained in:
parent
d2a799895b
commit
73fece000f
2 changed files with 5 additions and 2 deletions
|
@ -765,11 +765,10 @@ class Person < ActiveRecord::Base
|
||||||
validates :age, numericality: true, on: :update
|
validates :age, numericality: true, on: :update
|
||||||
|
|
||||||
# the default (validates on both create and update)
|
# the default (validates on both create and update)
|
||||||
# The following line is in review state and as of now, it is not running in any version of Rails 3.2.x as discussed in this [issue](https://github.com/rails/rails/issues/10248)
|
|
||||||
|
|
||||||
validates :name, presence: true, on: :save
|
validates :name, presence: true, on: :save
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
The last line is in review state and as of now, it is not running in any version of Rails 3.2.x as discussed in this [issue](https://github.com/rails/rails/issues/10248)
|
||||||
|
|
||||||
Strict Validations
|
Strict Validations
|
||||||
------------------
|
------------------
|
||||||
|
|
|
@ -63,6 +63,10 @@ Those guidelines apply also to guides.
|
||||||
HTML Guides
|
HTML Guides
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
Before generating the guides, make sure that you have the latest version of Bundler installed on your system. As of this writing, you must install Bundler 1.3.5 on your device.
|
||||||
|
|
||||||
|
To install the latest version of Bundler, simply run the `gem install bundler` command
|
||||||
|
|
||||||
### Generation
|
### Generation
|
||||||
|
|
||||||
To generate all the guides, just `cd` into the `guides` directory, run `bundle install` and execute:
|
To generate all the guides, just `cd` into the `guides` directory, run `bundle install` and execute:
|
||||||
|
|
Loading…
Reference in a new issue