multiparameter value handler

This commit is contained in:
Adam Meehan
2010-08-03 23:22:27 +10:00
parent 0f41671b32
commit 4028413631
5 changed files with 23 additions and 7 deletions

View File

@@ -141,7 +141,7 @@ To turn them on/off:
=== DISPLAY INVALID VALUES IN DATE/TIME SELECT HELPERS:
The plugin has some extensions to ActionView for 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
a blank field which happens by default in Rails. Though the date helpers make this a
pretty rare occurrence, given the select dropdowns for each date/time component, but
@@ -153,6 +153,19 @@ To activate it, put this in an initializer:
config.enable_date_time_select_extension!
=== STRICT DATE/TIME VALUES 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,
such as 31st June, are shifted forward and treated as valid. To handle these cases in a strict
way you can enable the plugin handler to treat them as invalid dates.
To activate it, put this in an initializer:
# in the setup block
config.enable_multiparameter_handler!
...