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_select(column, html_options)
        if column.association&.singular?
          active_scaffold_input_singular_association(column, html_options)
        elsif column.association&.collection?
          active_scaffold_input_plural_association(column, html_options)
        else
          active_scaffold_input_enum(column, html_options)
        end
      end
def active_scaffold_input_select ( column , html_options ) if column . association &. singular? active_scaffold_input_singular_association ( column , html_options ) elsif column . association &. collection? active_scaffold_input_plural_association ( column , html_options ) else active_scaffold_input_enum ( column , html_options ) end 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>