gregbell/active_admin — Issue #840: Add custom actions and buttons issue (wiki example doesn't work)
Author: giedriusr
Created: 2011-12-11 12:58:36+00:00
State: open

Hi,

I am using: activeadmin (0.3.2)

As described in the wiki: https://github.com/gregbell/active_admin/wiki/Add-custom-actions-and-buttons
to create new action for collection, we need smth like this:

```ruby
collection_action :published_items do
@collection = Post.published
column(:created_at)
column(:author_name)
column(:published_at)
column(:title) { |resource| resource.truncate(100) }
end
```

My code:

```ruby
collection_action :delivery do
@orders = Order.all
column(:created_at)
end
```

Then I am calling url: ``` /admin/orders/delivery ``` and getting this error

```
NoMethodError in Admin::OrdersController#delivery
undefined method `column' for #
```

Appreciate for help!