diff --git a/README.rdoc b/README.rdoc index de7f8b3..62a3255 100644 --- a/README.rdoc +++ b/README.rdoc @@ -266,6 +266,20 @@ corner cases a little harder to test. In general if you are using procs or model methods and you only care when they return a value, then they should return nil in all other situations. Restrictions are skipped if they are nil. + +=== DISPLAY INVALID VALUES IN DATE HELPERS: + +The plugin has some extensions to ActionView and ActiveRecord by allowing invalid +date and time values to be redisplayed to the user as feedback, instead of +a blank field which happens by default in Rails. Though the date helpers make this a +pretty rare occurence, given the select dropdowns for each date/time component, but +it may be something of interest. + +To activate it, put this in an initializer: + + ValidatesTimeliness.enable_datetime_select_extension! + + === OTHER CUSTOMISATION: The error messages for each temporal restrictions can also be globally overridden by