Forum: Ruby on Rails specifying m/d/y order in datetime_select

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
dave davidson (Guest)
on 2006-02-22 23:38
(Received via mailing list)
the date_select form helper has a neat little feature which lets you
the order of the month/day/year that is displayed on the form via the
parameter.  i.e.

<%= date_select 'blah', 'somedate', :order=>[ :month, :day, :year ]  %>

however, i don't see a similar option for datetime_select.  passing
an :order parameter is happily ignored by the method.  i would assume
this is
the case because either :order needs more parameters (:hour, :minute
work) or it is not parsed in a datetime_select context.

so, is this ordering available in datetime_select?

Bob S. (Guest)
on 2006-02-23 04:47
(Received via mailing list)
That's currently a known issue of the DateHelper.rb library. You can
find a
patch for this and many other issues where. Both EdgeRails and 1.0 diffs

Bob S.
This topic is locked and can not be replied to.