> 1) yes :)
> config.model Property do
> field city do
> searchable :name # or 'city.name' or { City => :name }
> end
> end
> 2) You can add custom fields that can behave the same
> config.model Space do
> export do
> ....
> field property_city do
> export_value do
> bindings[:object].property.city.name
> end
> end
> ....
> end
> end
> 3) no :( It would need a refactoring of the search engine and the filter
> widgets... :/
> Le mardi 11 septembre 2012 13:34:02 UTC+2, Karl a écrit :
>> Have a few rails_admin questions. Think i know the answers but wanted to
>> double check;
>> 1) Is it possible to add search filters by fields on nested models? For
>> example, property belongs to city which has a name. Is it possible to
>> filter properties by city#name?
>> 2) When exporting to CSV, is it possible to export fields from nested
>> models two levels deep? In my case, space belongs_to property which
>> belongs to city. I would like to export the city name.
>> 3) Is it possible to have search criteria joined together with "or"
>> instead of "and". For example, i want to search all users with name
>> michael or jon.
>> thx!
>> -karl