From 6f944c06c86fcf30f257202fa10f0ccad6014ef5 Mon Sep 17 00:00:00 2001 From: CassioMarques Date: Mon, 10 Nov 2008 20:40:32 -0200 Subject: Added info about validates_size_of, as being an alias for validates_length_of --- railties/doc/guides/source/activerecord_validations_callbacks.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/doc/guides/source') 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 -- cgit v1.2.3