You'll either need to change out the collection in the view or
controller.  Controller is probably cleaner.  Add a scope (probably
named_scope) to filter to just the viewable users.

On Jul 21, 8:06 am, hobo_hippy <[email protected]> wrote:
> i gave my users an boolean called isviewable. I have a collection of
> users on the users index-page, but how can I filter the collection to
> only show users with isviewable=true ?
>
> here's the markup for my users index page:
>
> <def tag="index-page" for="User">
>   <page merge title="Users">
>     <body: class="index-page user" param/>
>     <content: param>
>       <header param="content-header">
>         <h2 param="heading">Users</h2>
>         <p> Mouseover the employee's picture to preview their names.</
> p>
>         <p>Click the image to see their personal "about me".</p>
>       </header>
>       <section param="content-body">
> <!--      <a action="new" to="&model" param="new-link"/> -->
>         <page-nav param="top-page-nav"/>
>         <collection class="usercollection" param/>
>         <page-nav param="bottom-page-nav"/>
>       </section>
>     </content:>
>   </page>
> </def>
--~--~---------~--~----~------------~-------~--~----~
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