class ActiveAdmin::Views::IndexAsBlock


“‘
end
end
div simple_format product.description
h2 auto_link product.title
resource_selection_cell product
div for: product do
index as: :block do |product|
“`ruby
resource.
screen, Index as a Block allows you to render a block of content for each
If you want to fully customize the display of your resources on the index
# Index as a Block

def self.index_name

def self.index_name
  "block"
end

def build(page_presenter, collection)

def build(page_presenter, collection)
  add_class "index"
  resource_selection_toggle_panel if active_admin_config.batch_actions.any?
  collection.each do |obj|
    instance_exec(obj, &page_presenter.block)
  end
end