gregbell/active_admin — Issue #725: Using components (e.g. attributes table) in partials
Author: thebaby
Created: 2011-11-05 01:39:27+00:00
State: open

I am trying to generate an attributes table that is shared across multiple views, and put it in a partial. This works fine, except that it is getting rendered twice: once where it is supposed to be rendered, and another just after the body tag of the HTML document.

I'm assuming this is an issue with Arbre. Does anybody have any ideas on what is causing this bug?

Example code (in the ActiveAdmin.register block):

```ruby
show do
panel "User Details" do
render "details"
end
end
```

In app/views/admin/users/_details.html.haml:

```ruby
= attributes_table_for user, :first_name, :last_name
```