app/helpers/form_helper.rb
# TODO:
# - enable multiple selections at the same time, e.g. merge the current_scopes
enable multiple selections at the same time, e.g.
enable multiple selections at the same time e . g .
def select_tag_dropdown(options = {})
    id                     = options.fetch :id
    select_options         = options.fetch :select_options
    title                  = options.fetch :title, nil
    placeholder            = options.fetch :placeholder, nil
    include_blank          = options.fetch :include_blank, nil
    selected               = options.fetch :selected, nil
    remote_parent          = options.fetch :remote_parent, nil
    remote_target          = options.fetch :remote_target, nil
    remote_response_target = options.fetch :remote_response_target, nil
    remote_attributes      = {}
    options_for_select     = title ? select_options.unshift([title, '']) : select_options
    if remote_parent && remote_target && remote_response_target
      remote = true
    end
    if remote
      css_class = 'select-tag--remote'
      remote_attributes = {
        remote_parent: remote_parent,
        remote_target: remote_target,
        remote_response_target: remote_response_target
      }
    else
      css_class = 'select-tag--default'
    end
    select_tag id,
      options_for_select(options_for_select, selected),
      placeholder: placeholder.presence || 'false',
      id: id,
      class: css_class,
      include_blank: include_blank,
      style: 'width: 100%',
      data: {
        form_title: title,
        **remote_attributes
      }
  end
def select_tag_dropdown ( options = { } ) id = options . fetch :id select_options = options . fetch :select_options title = options . fetch :title , nil placeholder = options . fetch :placeholder , nil include_blank = options . fetch :include_blank , nil selected = options . fetch :selected , nil remote_parent = options . fetch :remote_parent , nil remote_target = options . fetch :remote_target , nil remote_response_target = options . fetch :remote_response_target , nil remote_attributes = { } options_for_select = title ? select_options . unshift ( [ title , '' ] ) : select_options if remote_parent && remote_target && remote_response_target remote = true end if remote css_class = 'select-tag--remote' remote_attributes = { remote_parent : remote_parent , remote_target : remote_target , remote_response_target : remote_response_target } else css_class = 'select-tag--default' end select_tag id , options_for_select ( options_for_select , selected ) , placeholder : placeholder . presence || 'false' , id : id , class : css_class , include_blank : include_blank , style : 'width: 100%' , data : { form_title : title , ** remote_attributes } end
TODO:
 enable multiple selections at the same time, e.g.
TODO : enable multiple selections at the same time e . g .
options
<not_specific>