You should be able to use any finder as an options attribute:

<check-many options="&Baz.where(:reference => 'A')"/>

Bryan

On Tue, Jan 17, 2012 at 9:24 PM, hobo_hippy <[email protected]> wrote:
> mostly... I still have the problem of filtering out certain bazs. For
> example say i have 3 bazs, each baz has 2 fields, name and reference
>
> baz1
>  name       = name1
>  reference  = A
>
> baz2
>  name       = name2
>  reference  = B
>
> baz3
>  name       = name3
>  reference  = A
>
> i want to be able to filter the check-many such that it'll only render
> checkboxes based on a reference like so:
>
> Baz with reference=A
> (checkboxes for this)
>
> Baz with reference=B
> (checkboxes for this)
>
> I only know to do <check-many:bazs/>
>
> I see there's an options attribute from the tag def and from reading
> the source it looks like if I pass it the model name, it'll repeat
> with all instances of that model.
>
> ...<li param repeat='&options'>...
>
> so can i pass something clever into options to only repeat through the
> models that have a common field? Like only fields with reference=A?
>
> --
> 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.
>

-- 
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