in controller:

def conditions_for_collection
 "date >= now()"
end

- date is your column name. however, it's better to use table.column format
to avoid joins conflict.
- now() works in postgresql, dunno other DBs. but you could use
'#{Date.today}' instead.

On Tue, Aug 18, 2009 at 3:12 PM, geoklee <[email protected]> wrote:

>
> Is there a way to hide or filter out rows based on a condition?
> Specifically in my case I want to not list events that are now in the
> past (and without having to delete the those records in the
> database).  Can ActiveScaffoldListFilters accomplish this?  IAny other
> way?  Your guidance would be much appreciated!
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to