module

ActionView::Helpers::FormOptionsHelper

Inherits ActionView::Helpers::TagHelper

Instance methods

grouped_options_for_select(grouped : Array(Tuple(String, Array)), selected : SelectValue | Nil = nil, *, prompt : String | Nil = nil) : SafeString
Source
option_groups_from_collection_for_select(groups : Array(GroupOption), selected : SelectValue | Nil = nil) : SafeString
Source
options_for_select(container : Array, selected : SelectValue | Nil = nil, disabled : SelectValue | Nil = nil) : SafeString
<option> tags from [text, value] pairs (or plain strings used for both); selected/disabled first, then value — Rails hash insertion order, oracle fo_from_collection_dis.
Source
options_from_collection_for_select(collection : Array(FormOption), selected : SelectValue | Nil = nil, disabled : SelectValue | Nil = nil) : SafeString
Source

Nested types