Sha256: ec9785490ee74d0c5f55a77e99c4b4bb2b5d662a0c407715eb346decfa4e6012

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

# frozen_string_literal: true

# :nodoc:
class SelectListForm < ApplicationForm
  form do |check_form|
    check_form.select_list(name: "cities", label: "Cool cities", caption: "Select your favorite!",
                           include_blank: true) do |city_list|
      city_list.option(label: "Lopez Island", value: "lopez_island")
      city_list.option(label: "Bellevue", value: "bellevue")
      city_list.option(label: "Seattle", value: "seattle")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yattho_view_components-0.1.1 app/forms/select_list_form.rb
yattho_view_components-0.0.1 app/forms/select_list_form.rb