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.

Show source
Register or log in to add new notes.