method

prompt_option_tag

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActionView::Helpers::DateTimeSelector
prompt_option_tag(type, options) private

Builds a prompt option tag with supplied options or from default options.

prompt_option_tag(:month, prompt: 'Select month')
=> "<option value="">Select month</option>"
Show source
Register or log in to add new notes.