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_plural_association(column, options)
        record = options.delete(:object)
        associated_options, select_options = active_scaffold_plural_association_options(column, record)
        html =
          if select_options.empty?
            content_tag(:span, as_(:no_options), :class => "#{options[:class]} no-options", :id => options[:id]) <<
              hidden_field_tag("#{options[:name]}[]", '', :id => nil)
          else
            active_scaffold_checkbox_list(column, select_options, associated_options.collect(&:id), options)
          end
        html << active_scaffold_refresh_link(column, options, record) if column.options[:refresh_link]
        html
      end
def active_scaffold_input_plural_association ( column , options ) record = options . delete ( :object ) associated_options , select_options = active_scaffold_plural_association_options ( column , record ) html = if select_options . empty? content_tag ( :span , as_ ( :no_options ) , :class => "#{options[:class]} no-options" , :id => options [ :id ] ) << hidden_field_tag ( "#{options[:name]}[]" , '' , :id => nil ) else active_scaffold_checkbox_list ( column , select_options , associated_options . collect ( & :id ) , options ) end html << active_scaffold_refresh_link ( column , options , record ) if column . options [ :refresh_link ] html 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>