From c8609c1fd0516085d753591c2fefd3092ff6ab83 Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Fri, 17 Sep 2010 08:49:26 +1000 Subject: [PATCH] readme consistencies --- README.rdoc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.rdoc b/README.rdoc index 7eab449..a2d4ea6 100644 --- a/README.rdoc +++ b/README.rdoc @@ -3,14 +3,14 @@ * Source: http://github.com/adzap/validates_timeliness * Bugs: http://github.com/adzap/validates_timeliness/issues -== Description: +== Description Validate dates, times and datetimes for Rails 3.x and ActiveModel. If you a looking for the old version for Rails 2.x go here:http://github.com/adzap/validates_timeliness/tree/v2.3. -== Features: +== Features * Adds ActiveModel validation for dates, times and datetimes @@ -23,7 +23,7 @@ If you a looking for the old version for Rails 2.x go here:http://github.com/adz * Adds before_type_cast method on validated attributes, if ORM supports it. -== Installation: +== Installation As plugin (from master) @@ -147,7 +147,7 @@ Note: There is no :between_message option. The between error message should be d It is highly recommended you use the I18n system for error messages. -=== Plugin date/time parser +=== Plugin Parser The plugin comes with a customisable date and time parser. You can add or remove valid formats for dates, times, and datetimes. It is also more strict than the Ruby parser, which means it @@ -194,7 +194,7 @@ need to customize this for some reason you can do so as follows The value should be an array of 3 values being year, month and day in that order. -=== Temporal Restriction Errors: +=== Temporal Restriction Errors When using the validation temporal restrictions there are times when the restriction option value itself may be invalid. This will add an error to the model such as @@ -208,7 +208,7 @@ To turn them on/off: config.ignore_restriction_errors = true -=== Display invalid values in date/time select helpers: +=== Display Invalid Values in Select Helpers The plugin offers an extension for ActionView to allowing invalid date and time values to be redisplayed to the user as feedback, instead of @@ -222,7 +222,7 @@ To activate it, put this in an initializer: config.enable_date_time_select_extension! -=== Strict date/time values for select helpers +=== Stricter Parsing for Select Helpers when using date/time select helpers, the component values are handled by ActiveRecord using the Time class to instantiate them into a time value. But this mean that some invalid dates, @@ -235,6 +235,6 @@ To activate it, put this in an initializer: config.enable_multiparameter_extension! -== License: +== License Copyright (c) 2008-2010 Adam Meehan, released under the MIT license