diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-04-04 18:22:08 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-04-04 18:22:08 -0300 |
commit | bd49325e3ba9fba3bbea2d32b3e7a71ec1934c55 (patch) | |
tree | 853ebea4d19205d34b3df99ad884e464366faa84 | |
parent | 0f51dda718696b67b5e98b748e75ea49fc05b360 (diff) | |
parent | 723a7c8ef4e40d21580679a166ce3b1e9c3236fa (diff) | |
download | rails-bd49325e3ba9fba3bbea2d32b3e7a71ec1934c55.tar.gz rails-bd49325e3ba9fba3bbea2d32b3e7a71ec1934c55.tar.bz2 rails-bd49325e3ba9fba3bbea2d32b3e7a71ec1934c55.zip |
Merge pull request #24421 from arthur-vieira/patch-1
[ci skip] Fix variable name
-rw-r--r-- | guides/source/active_record_validations.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index baaebd21c8..bd16ccad12 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -1217,9 +1217,9 @@ person.errors[:name] person.errors.clear person.errors.empty? # => true -p.save # => false +person.save # => false -p.errors[:name] +person.errors[:name] # => ["can't be blank", "is too short (minimum is 3 characters)"] ``` |