Date Time Text Field Helpers plugin
Plugin details
Documentation
ruby script/plugin install http://date-time-text-field-helpers.googlecode.com/svn/trunk
== Usage
So instead of:
date_select :person, :date_of_birth
or
time_select :person, :time_of_birth
or
datetime_select :person, :date_and_time_of_birth
use:
date_text_field :person, :date_of_birth
or
time_text_field :person, :time_of_birth
or
datetime_text_field :person, :date_and_time_of_birth
== Options
Most of the options which can be used with the standard Rails date helpers apply including :order, :default, :include_seconds and so on.
A few new options are:
:date_separator - Sets the character displayed between the date components
:time_separator - guess
:date_time_separator - the separator between the date and the time parts
:blank - acts like :include_blank option to use blank fields rather than the default current date/time if the column has no value yet.
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: Guest, about 1 month ago

