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 render_column(column, record, renders_as, scope = nil, only_value = false, col_class = nil) 
        if (partial = override_form_field_partial(column))
          render :partial => partial, :locals => {:column => column, :only_value => only_value, :scope => scope, :col_class => col_class, :record => record}
        elsif renders_as == :field || override_form_field?(column)
          form_attribute(column, record, scope, only_value, col_class)
        elsif renders_as == :subform
          render :partial => 'form_association', :locals => {:column => column, :scope => scope, :parent_record => record}
        else
          form_hidden_attribute(column, record, scope)
        end
      end
def render_column ( column , record , renders_as , scope = nil , only_value = false , col_class = nil ) if ( partial = override_form_field_partial ( column ) ) render :partial => partial , :locals => { :column => column , :only_value => only_value , :scope => scope , :col_class => col_class , :record => record } elsif renders_as == :field || override_form_field? ( column ) form_attribute ( column , record , scope , only_value , col_class ) elsif renders_as == :subform render :partial => 'form_association' , :locals => { :column => column , :scope => scope , :parent_record => record } else form_hidden_attribute ( column , record , scope ) end end
This method decides which input to use for the given column.
This method decides which input to use for the given column .
# rubocop:disable Metrics/ParameterLists
column
<not_specific>
record
<not_specific>
renders_as
<not_specific>
scope
<not_specific>
only_value
<not_specific>
col_class
<not_specific>