in my helper
def created_at_form_column(record, input_name)
select :record, :created_at, options_for_select(['Today',
'Yesterday','This Week']),
{:include_blank => as_('- select -')}, :name => input_name
end
I make like that because created_at_search_column return a empty
selectbox
Now the content of my selectbox is
<option value="Today">Today</option>
<option value="Yesterday">Yesterday</option>
<option value="This Week">This Week</option>
i check the html code :
<option value="<option value="Today">Today</option>"><option
value="Today">Today</option> </option>
<option value="<option value="Yesterday">Yesterday</option>"><option
value="Yesterday">Yesterday</option> </option>
<option value="<option value="This Week">This Week</option>"><option
value="This Week">This Week</option></option>
it's strange
On 18 fév, 12:01, "Sergio Cambra .:: entreCables - Symbol Servicios
Informáticos S.L. ::." <[email protected]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---