Sha256: 0f2dd0df9cc72fcc3239dd1c242808fb29df50b008d0f342f050f48f21320d80

Contents?: true

Size: 431 Bytes

Versions: 46

Compression:

Stored size: 431 Bytes

Contents

---
redirect_from: /docs/3-index-pages/index-as-block.html
---

# 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

46 entries across 46 versions & 4 rubygems

Version Path
activeadmin-2.4.0 docs/3-index-pages/index-as-block.md
activeadmin-2.3.1 docs/3-index-pages/index-as-block.md
activeadmin-2.3.0 docs/3-index-pages/index-as-block.md
activeadmin-2.2.0 docs/3-index-pages/index-as-block.md
activeadmin-2.1.0 docs/3-index-pages/index-as-block.md
activeadmin-2.0.0 docs/3-index-pages/index-as-block.md
activeadmin-rb-1.5.0 docs/3-index-pages/index-as-block.md
activeadmin-2.0.0.rc2 docs/3-index-pages/index-as-block.md
activeadmin_addons-1.7.1 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/docs/3-index-pages/index-as-block.md
activeadmin-2.0.0.rc1 docs/3-index-pages/index-as-block.md
activeadmin-rb-1.4.0 docs/3-index-pages/index-as-block.md
activeadmin_addons-1.7.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/docs/3-index-pages/index-as-block.md
activeadmin-1.4.3 docs/3-index-pages/index-as-block.md
activeadmin-1.4.2 docs/3-index-pages/index-as-block.md
activeadmin-1.4.1 docs/3-index-pages/index-as-block.md
activeadmin-1.4.0 docs/3-index-pages/index-as-block.md
activeadmin-1.3.1 docs/3-index-pages/index-as-block.md
activeadmin_addons-1.6.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/docs/3-index-pages/index-as-block.md
activeadmin_addons-1.5.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/docs/3-index-pages/index-as-block.md
activeadmin-1.3.0 docs/3-index-pages/index-as-block.md