El Wednesday 18 February 2009 03:25:28 fmh escribió: > hello, > > i try to use a field_search with a datetime record but it does not > work. > > config.actions.swap :search, :field_search > config.field_search.columns = :created_at > > how to use date range like "Today" or "this week" ?
Default search form for date fields is searching dates in a range. You can add a new search_ui in your helper and conditions method in your controller Or you can override the search form for a specific column. http://wiki.github.com/activescaffold/active_scaffold/search-overrides -- Sergio Cambra .:: entreCables S.L. ::. Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
