Here is my search column:
index.search do |search|
search.columns :created_at_before
search.columns :created_at_after
end
I get this error and cant figure out how to set it:
Virtual search column :created_at_before needs a conditions block
Any tips?
What you can do right now is a single search column against created_at:
index.search do |search|
search.columns :created_at
end
... which will then show a created_at search column, with a comparator
widget with possible values like "equal to", "greater than", etc.
However you can't do that more than once against the same column --
i.e. "find me all blog posts created after noon on Monday and before
noon on Thursday". Is that a specific use-case you need to satisfy? If
so, what do you think would be a good way to specify that in your
controller?
Francis Hwang
http://fhwang.net/
> --
> You received this message because you are subscribed to the Google
> Groups "admin_assistant" group.
> To post to this group, send email to admin_a...@googlegroups.com.
> To unsubscribe from this group, send email to admin_assista...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/admin_assistant?hl=en
> .
>
>