I am developing a Rails application using ActiveScaffold and I am stuck with the fact that I need to do a date range filter.
I need to do a date range search (equivalent SQL => 'WHERE created_at BETWEEN :date_1 AND :date_2'). For that, I need to tell AS to display two text fields with datepickers (that part is pretty easy with jQuery datepicker, thank you for pointing me there).
An example would be:
text_field_tag :date_from, ''
text_field_tag :date_to, ''
I'm stuck at telling AS that :date_from and :date_to belong to the same column => created_at
I've tried to do an override search in the helper,creating there the two text_fields, It will only display one text_field.
I've tried to create virtual columns linking them to the created_at, didn't work.
Anyone had to face this situation with AS before? Any advice would be appreciated.