class ActiveAdmin::Views::TableFor
def column(*args, &block)
def column(*args, &block) options = default_options.merge(args.extract_options!) title = args[0] data = args[1] || args[0] col = Column.new(title, data, @resource_class, options, &block) @columns << col # Build our header item within @header_row do build_table_header(col) end # Add a table cell for each item @collection.each_with_index do |resource, index| within @tbody.children[index] do build_table_cell col, resource end end end