lib/active_scaffold/helpers/form_column_helpers.rb
# This method decides which input to use for the given column.
# It does not do any rendering. It only decides which method is responsible for rendering.
This method decides which input to use for the given column.
It does not do any rendering. It only decides which method is responsible for rendering.
This method decides which input to use for the given column . It does not do any rendering . It only decides which method is responsible for rendering .
def active_scaffold_input_enum(column, html_options, options = {})
        record = html_options.delete(:object)
        options[:selected] = record.send(column.name)
        options[:object] = record
        options_for_select = active_scaffold_enum_options(column, record).collect do |text, value|
          active_scaffold_translated_option(column, text, value)
        end
        html_options.merge!(column.options[:html_options] || {})
        options.merge!(column.options)
        active_scaffold_select_name_with_multiple html_options
        active_scaffold_translate_select_options(options)
        select(:record, column.name, options_for_select, options, html_options)
      end
def active_scaffold_input_enum ( column , html_options , options = { } ) record = html_options . delete ( :object ) options [ :selected ] = record . send ( column . name ) options [ :object ] = record options_for_select = active_scaffold_enum_options ( column , record ) . collect do | text , value | active_scaffold_translated_option ( column , text , value ) end html_options . merge! ( column . options [ :html_options ] || { } ) options . merge! ( column . options ) active_scaffold_select_name_with_multiple html_options active_scaffold_translate_select_options ( options ) select ( :record , column . name , options_for_select , options , html_options ) end
This method decides which input to use for the given column.
This method decides which input to use for the given column .
column
<not_specific>
html_options
<not_specific>
options
<not_specific>