aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorGrayson Wright <wright.grayson@gmail.com>2013-09-24 17:07:57 -0400
committerGrayson Wright <wright.grayson@gmail.com>2013-09-24 17:07:57 -0400
commit52f3717569a329e67f9a68db8c3db222e0d3e9b3 (patch)
treee818bee62ea1a6610335949d9a3a49c026ad95fb /guides/source
parentb1178aef3b44bd9e0153d2c4f8a2a2a590949999 (diff)
downloadrails-52f3717569a329e67f9a68db8c3db222e0d3e9b3.tar.gz
rails-52f3717569a329e67f9a68db8c3db222e0d3e9b3.tar.bz2
rails-52f3717569a329e67f9a68db8c3db222e0d3e9b3.zip
[Documentation] Add a missing validation to I18n docs
The guide was missing a description of the error message interpolation for validates_numericality_of with the :only_integer option.
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/i18n.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/guides/source/i18n.md b/guides/source/i18n.md
index 948b6f167c..33daa79133 100644
--- a/guides/source/i18n.md
+++ b/guides/source/i18n.md
@@ -843,6 +843,7 @@ So, for example, instead of the default error message `"can not be blank"` you c
| numericality | :equal_to | :equal_to | count |
| numericality | :less_than | :less_than | count |
| numericality | :less_than_or_equal_to | :less_than_or_equal_to | count |
+| numericality | :only_integer | :not_an_integer | - |
| numericality | :odd | :odd | - |
| numericality | :even | :even | - |