Kiss A simpler, smarter web application framework for Ruby

Kiss::Form::MultiSelectField Subclass of Kiss::Form::MultiValueField

Methods

Public Instance Methods

element_html() source

Not documented

    # File lib/kiss/form/field.rb, line 392
      def element_html
        options_html = option_pairs.map do |value,display|
          selected = selected_option_values[value] ? ' selected' : ''
          %Q(<option value="#{value_to_s(value)}"#{selected}>#{display}</option>)
        end.join
        
        content_tag_html(
          'select',
          options_html,
          {},
          'multiple'
        )
      end
    

Disabled; run with $DEBUG to generate this.