diff options
author | CassioMarques <cassiommc@gmail.com> | 2008-11-10 20:40:32 -0200 |
---|---|---|
committer | CassioMarques <cassiommc@gmail.com> | 2008-11-10 20:40:32 -0200 |
commit | 6f944c06c86fcf30f257202fa10f0ccad6014ef5 (patch) | |
tree | bd9e493c74e7ececedf714f5ef891454b27a12bc /railties/doc/guides/source/activerecord_validations_callbacks.txt | |
parent | d0cb4d7258c9241fcffda854d615c44586189838 (diff) | |
download | rails-6f944c06c86fcf30f257202fa10f0ccad6014ef5.tar.gz rails-6f944c06c86fcf30f257202fa10f0ccad6014ef5.tar.bz2 rails-6f944c06c86fcf30f257202fa10f0ccad6014ef5.zip |
Added info about validates_size_of, as being an alias for validates_length_of
Diffstat (limited to 'railties/doc/guides/source/activerecord_validations_callbacks.txt')
-rw-r--r-- | railties/doc/guides/source/activerecord_validations_callbacks.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/doc/guides/source/activerecord_validations_callbacks.txt b/railties/doc/guides/source/activerecord_validations_callbacks.txt index 4dfa92e542..04248d592f 100644 --- a/railties/doc/guides/source/activerecord_validations_callbacks.txt +++ b/railties/doc/guides/source/activerecord_validations_callbacks.txt @@ -219,6 +219,8 @@ class Person < ActiveRecord::Base end ------------------------------------------------------------------ +This helper has an alias called +validates_size_of+, it's the same helper with a different name. You can use it if you'd like to. + === The +validates_numericallity_of+ helper This helper validates that your attributes have only numeric values. By default, it will match an optional sign followed by a integral or floating point number. Using the +:integer_only+ option set to true, you can specify that only integral numbers are allowed. @@ -260,8 +262,6 @@ NOTE: If you want to validate the presence of a boolean field (where the real va The default error message for +validates_presence_of+ is "_can't be empty_". -=== The +validates_size_of+ helper - === The validates_uniqueness_of+ helper == Common validation options |