class ActiveAdmin::Views::IndexAsBlock
end
end
end
simple_format product.description
div do
h2 auto_link(product.title)
div :for => product do
index :as => :block do |product|
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 build(page_presenter, collection)
def build(page_presenter, collection) collection.each do |obj| instance_exec(obj, &page_presenter.block) end end