Sha256: c41e504bcc3d7984862c3f30c3d12cfb766da4b83446746b9c5d3da920e45b8b
Contents?: true
Size: 702 Bytes
Versions: 3
Compression:
Stored size: 702 Bytes
Contents
ruby: form ||= nil attribute ||= nil # attribute name that the editor should be attached to collection ||= nil value_method ||= nil text_method ||= nil multiple ||= nil prompt ||= nil selected ||= nil options = {} html_options = {class: 'form-control bs-multiselect'} html_options[:multiple] = 'multiple' if multiple options[:prompt] = prompt if prompt && form html_options[:prompt] = prompt if prompt && !form div - if form.present? = form.collection_select attribute, collection, value_method, text_method, options, html_options - else = select_tag attribute, options_from_collection_for_select(collection, value_method, text_method, selected), html_options
Version data entries
3 entries across 3 versions & 1 rubygems