Sha256: d2e47751f6ae52a3712da01b0d0940537f9187cac2a7273302c2c027a34f20ec

Contents?: true

Size: 579 Bytes

Versions: 2

Compression:

Stored size: 579 Bytes

Contents

---
redirect_from: /docs/3-index-pages/index-as-block.html
---
<!--
  WARNING: Please DO NOT edit this file! Update
  source documentation in lib/active_admin/views
  and execute rake yard to regenerate it.
-->

# Index as a Block

If you want to fully customize the display of your resources on the index
screen, Index as a Block allows you to render a block of content for each
resource.

```ruby
index as: :block do |product|
  div for: product do
    resource_selection_cell product
    h2  auto_link     product.title
    div simple_format product.description
  end
end
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activeadmin-1.0.0 docs/3-index-pages/index-as-block.md
activeadmin-1.0.0.pre5 docs/3-index-pages/index-as-block.md