I could *almost* taste that big bucket of win, but when I do this:

<controls:>
        <if test="&@package.state == 'Draft'">
                <edit-link/>
                <delete-button/>
        </if>
</controls:>

Hobo turfs up this error:

ActionView::TemplateError (undefined method `edit_link' for
#<ActionView::Base:0x10a5bef68>)

Damn. So close. Is there something particular about the <controls> tag
I'm missing?

Tim



On May 22, 9:36 pm, Matt Jones <[email protected]> wrote:
> On May 22, 2010, at 4:20 PM, tjg wrote:
>
> > In a <show-page> template (show.dryml), I am surprised that I have not
> > been able to conditionally control the display of the Edit and Delete
> > buttons in a <table-plus> using what I thought would work:
>
> [snip]
>
> > I tried reversing the layout:
> > <controls:>
> >   <if test="&[email protected] == 'Draft' ">
> >      <edit-link:/>
> >      <delete-button:/>
> >   </if>
> > </controls:>
>
> > but this produced the same error, and no joy.
>
> You're two colons away from a giant bucket of win - drop the colons on  
> edit-link and delete-button above and it should work.
>
> --Matt Jones
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Hobo Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/hobousers?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to