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 dropdown_select_form(options = {})
    url                    = options.fetch :url
    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
    css_class              = options.fetch :css_class, nil
    remote_parent          = options.fetch :remote_parent, nil
    remote_target          = options.fetch :remote_target, nil
    remote_response_target = options.fetch :remote_response_target, nil
    if remote_parent && remote_target && remote_response_target
      remote = true
    end
    if remote
      form_tag_base_css_class = 'select-tag-remote-form'
    else
      form_tag_base_css_class = 'select-tag-form'
    end
    form_tag url, method: :get, enforce_utf8: false, class: "#{form_tag_base_css_class} #{css_class}" do
      concat select_tag_dropdown id: id,
        select_options: select_options,
        title: title,
        placeholder: placeholder,
        include_blank: include_blank,
        selected: params[id],
        remote_parent: remote_parent,
        remote_target: remote_target,
        remote_response_target: remote_response_target
    end
  end
def dropdown_select_form ( options = { } ) url = options . fetch :url 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 css_class = options . fetch :css_class , nil remote_parent = options . fetch :remote_parent , nil remote_target = options . fetch :remote_target , nil remote_response_target = options . fetch :remote_response_target , nil if remote_parent && remote_target && remote_response_target remote = true end if remote form_tag_base_css_class = 'select-tag-remote-form' else form_tag_base_css_class = 'select-tag-form' end form_tag url , method : :get , enforce_utf8 : false , class : "#{form_tag_base_css_class} #{css_class}" do concat select_tag_dropdown id : id , select_options : select_options , title : title , placeholder : placeholder , include_blank : include_blank , selected : params [ id ] , remote_parent : remote_parent , remote_target : remote_target , remote_response_target : remote_response_target end end
TODO:
 enable multiple selections at the same time, e.g.
TODO : enable multiple selections at the same time e . g .
# concat params_as_hidden_fields id
options
<not_specific>