search for: discard_hour

Displaying 3 results from an estimated 3 matches for "discard_hour".

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
2006 Feb 05
0
How can i specify default time to datetime_select tag
...tions[:discard_month] datetime_select << select_day(datetime, options_with_prefix.call(3)) unless options[:discard_day] || options[:discard_month] datetime_select << '' &mdash; '' + 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 wh...
2006 Sep 15
1
In datetime_select, :order does not work, but it works for date_select Why
...as day, month and year. I added :order option for datetime_select, it renders normal selection boxes with order year, month and day. Why :order does not work with datetime_select? see my following code <%= datetime_select(:user2, :date_of_birth, :discard_hour => true, :start_year => 2000, :end_year => 1910, :order => [:day, :month, :year]) %> here :order is ineffective. Also I want to add id for...