I'm writing an extension to add a new feature to the "taggable"
extension and I need to do something very simple: add a new column to
the taggable index page.  This is pretty simple:

admin.tag.index.add :thead, "add_required_header", :after =>
"modify_header"
admin.tag.index.add :tbody, "add_required_cell", :after =>
"modify_cell"

However, in my partial, I need to reference the tag object from
index.html.haml:

- for tag in @tags
        %tr.node.level-1
          - render_region :tbody do |tbody|
            .
            .
            .
            / Partial code should be inserted here
            / - tbody.required_cell do
            /   - if tag.required
            /     Required

However, the "tag" object is not available within the partial.  Is
there any way I can get access to that when I'm adding code via
partials?

Reply via email to