Date Time Text Field Helpers plugin
Plugin details
Documentation
ruby script/plugin install git://github.com/adzap/date_time_text_field_helpers.git
== 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
Edit plugin | Back in time (5 older versions) | Last edited by: scott, about 1 year ago


