aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorSven Fuchs <svenfuchs@artweb-design.de>2008-12-16 15:51:31 +0100
committerSven Fuchs <svenfuchs@artweb-design.de>2008-12-16 15:51:31 +0100
commit26b7bd941de901cb103007ebed24506bffbf6580 (patch)
tree992e3adab14acf709102d796bb03dc16f10beebc /railties
parentbf0ffc5486709017536f90a7af2626fa45801939 (diff)
downloadrails-26b7bd941de901cb103007ebed24506bffbf6580.tar.gz
rails-26b7bd941de901cb103007ebed24506bffbf6580.tar.bz2
rails-26b7bd941de901cb103007ebed24506bffbf6580.zip
use new asciidoc table syntax
Diffstat (limited to 'railties')
-rw-r--r--railties/doc/guides/source/i18n.txt39
1 files changed, 19 insertions, 20 deletions
diff --git a/railties/doc/guides/source/i18n.txt b/railties/doc/guides/source/i18n.txt
index f18e8b73a9..de7801d53f 100644
--- a/railties/doc/guides/source/i18n.txt
+++ b/railties/doc/guides/source/i18n.txt
@@ -468,26 +468,25 @@ So, for example, instead of the default error message "can not be blank" you cou
count and/or value are available where applicable. Count can be used for pluralization if present:
-[grid="all"]
-`---------------------------`----------------`---------------`----------------
-validation with option message interpolation
-validates_confirmation_of - :confirmation -
-validates_acceptance_of - :accepted -
-validates_presence_of - :blank -
-validates_length_of :within, :in :too_short count
-validates_length_of :within, :in :too_long count
-validates_length_of :is :wrong_length count
-validates_length_of :minimum :too_short count
-validates_length_of :maximum :too_long count
-validates_uniqueness_of - :taken value
-validates_format_of - :invalid value
-validates_inclusion_of - :inclusion value
-validates_exclusion_of - :exclusion value
-validates_associated - :invalid value
-validates_numericality_of - :not_a_number value
-validates_numericality_of :odd :odd value
-validates_numericality_of :even :even value
-------------------------------------------------------------------------------
+|==================================================================================
+| validation | with option | message | interpolation
+| validates_confirmation_of | - | :confirmation | -
+| validates_acceptance_of | - | :accepted | -
+| validates_presence_of | - | :blank | -
+| validates_length_of | :within, :in | :too_short | count
+| validates_length_of | :within, :in | :too_long | count
+| validates_length_of | :is | :wrong_length | count
+| validates_length_of | :minimum | :too_short | count
+| validates_length_of | :maximum | :too_long | count
+| validates_uniqueness_of | - | :taken | value
+| validates_format_of | - | :invalid | value
+| validates_inclusion_of | - | :inclusion | value
+| validates_exclusion_of | - | :exclusion | value
+| validates_associated | - | :invalid | value
+| validates_numericality_of | - | :not_a_number | value
+| validates_numericality_of | :odd | :odd | value
+| validates_numericality_of | :even | :even | value
+|==================================================================================
==== Translations for the ActiveRecord error_messages_for helper