From 6d12790d2bc2bf39bce1e6f78280ce0c2af56287 Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Mon, 6 Apr 2009 17:34:23 +1000 Subject: [PATCH] datetime select helper extension activation in readme --- README.rdoc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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