lib/active_scaffold/helpers/update_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_update_generic_operators_select(column, options)
        current = {:operator => 'NO_UPDATE'}
        current.merge!(batch_update_values[column.name][:value].symbolize_keys) if batch_update_values[column.name] && batch_update_values[column.name][:value]
        select_tag("[record][#{column.name}][operator]",
              options_for_select(active_scaffold_update_generic_operators(column), current[:operator]),
              :id => "#{options[:id]}_operator",
              :class => "as_batch_update_operator text_input")
      end
def active_scaffold_update_generic_operators_select ( column , options ) current = { :operator => 'NO_UPDATE' } current . merge! ( batch_update_values [ column . name ] [ :value ] . symbolize_keys ) if batch_update_values [ column . name ] && batch_update_values [ column . name ] [ :value ] select_tag ( "[record][#{column.name}][operator]" , options_for_select ( active_scaffold_update_generic_operators ( column ) , current [ :operator ] ) , :id => "#{options[:id]}_operator" , :class => "as_batch_update_operator text_input" ) 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>
options
<not_specific>