method
select_datetime
v1.2.6 -
Show latest stable
-
0 notes -
Class: ActionView::Helpers::DateHelper
- 1.0.0 (0)
- 1.1.6 (0)
- 1.2.6 (14)
- 2.0.3 (38)
- 2.1.0 (3)
- 2.2.1 (12)
- 2.3.8 (12)
- 3.0.0 (0)
- 3.0.9 (-3)
- 3.1.0 (4)
- 3.2.1 (0)
- 3.2.8 (0)
- 3.2.13 (0)
- 4.0.2 (-2)
- 4.1.8 (0)
- 4.2.1 (0)
- 4.2.7 (0)
- 4.2.9 (0)
- 5.0.0.1 (0)
- 5.1.7 (0)
- 5.2.3 (0)
- 6.0.0 (0)
- 6.1.3.1 (0)
- 6.1.7.7 (0)
- 7.0.0 (0)
- 7.1.3.2 (0)
- 7.1.3.4 (0)
- 7.2.3 (0)
- 8.0.0 (0)
- 8.1.1 (0)
- What's this?
select_datetime(datetime = Time.now, options = {})
public
Returns a set of html select-tags (one for year, month, day, hour, and minute) pre-selected with the datetime. It’s also possible to explicitly set the order of the tags using the :order option with an array of symbols :year, :month and :day in the desired order. If you do not supply a Symbol, it will be appened onto the :order passed in. You can also add :date_separator and :time_separator keys to the options to control visual display of the elements.

