Displaying 2 results from an estimated 2 matches for "discard_minute".
2006 Feb 05
0
How can i specify default time to datetime_select tag
...ons[:discard_month]
datetime_select << '' — '' + select_hour(datetime,
options_with_prefix.call(4)) unless options[:discard_hour]
datetime_select << '' : '' + select_minute(datetime,
options_with_prefix.call(5)) unless options[:discard_minute] ||
options[:discard_hour]
datetime_select
end
-----------------------------------------------------------------------
i was wondering where did the variable value come from in follong line:
datetime = options[:include_blank] ? (value || nil) : (value ||
Time.now)
--
Posted v...
Overriding date_select in local project to use custom value rather than blank for starting option...
2005 May 08
3
Overriding date_select in local project to use custom value rather than blank for starting option...
I would like to have a date control on a page and I would like a
behavior similar to what you get using date_select with the
:include_blank => true option where the first value in the dropdown is
"- Month -", "- Day -", or "- Year -" rather than a blank value for
the respective month, day, and year select fields.
I took a look at the ruby source for