readme consistencies

This commit is contained in:
Adam Meehan 2010-09-17 08:49:26 +10:00
parent b261563644
commit c8609c1fd0

View File

@ -3,14 +3,14 @@
* Source: http://github.com/adzap/validates_timeliness * Source: http://github.com/adzap/validates_timeliness
* Bugs: http://github.com/adzap/validates_timeliness/issues * Bugs: http://github.com/adzap/validates_timeliness/issues
== Description: == Description
Validate dates, times and datetimes for Rails 3.x and ActiveModel. 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. 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 * 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. * Adds before_type_cast method on validated attributes, if ORM supports it.
== Installation: == Installation
As plugin (from master) 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. 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 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 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. 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 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 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 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 The plugin offers an extension for ActionView to allowing invalid
date and time values to be redisplayed to the user as feedback, instead of 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! 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 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, 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! config.enable_multiparameter_extension!
== License: == License
Copyright (c) 2008-2010 Adam Meehan, released under the MIT license Copyright (c) 2008-2010 Adam Meehan, released under the MIT license