gregbell/active_admin — Issue #714: Layout missing when using status_tag in partial
Author: dpmccabe
Created: 2011-11-02 19:35:20+00:00
State: open

I'm rendering a partial template on :index for each user in my User resource:

```ruby
index :as => :block do |user|
div :for => user, :class => "user" do
render :partial => "admin/users/block", :locals => {:user => user}
end
end
```

In the partial, I'm using the status_tag helper: `status_tag(user.account.state)`. However, when I try to render "/admin/users", the only HTML rendered is what the status_tag helper outputs: `Quizzed` (not even an `` tag).

When I remove any instances of status_tag in the partial, :index is rendered properly, including the template, sidebar, `index :as => :block`, and my partial for each User.

I also use the partial once in the `show` method, where I have the same problem:
```ruby
show do
render :partial => "admin/users/block"
end
```