# encoding: UTF-8 module Spontaneous::Field # Provides a select field in the UI. # # Options for the select are provided by passing an :options value in the field config. # # This form gives a fixed list of options whose values & labels are the same: # # class Something < Piece # field :choices, :select, :options => [ "First Option", "Second Option" ] # end # # This will generate a select tag showing "First Option" and "Second Option" in the # editing UI. # # If you want to have the generated