私は3つの関連モデルを持っています:
class Brand < ActiveRecord::Base
has_many :car_models
end
class CarModel < ActiveRecord::Base
has_many :production_years
belongs_to :brand
end
class ProductionYear < ActiveRecord::Base
belongs_to :car_model
end
では、ブランド別にフィルタリングしたい場合、ActiveAdminproduction_yearセクションでカスタムフィルターを作成するにはどうすればよいですか?そこにあるデフォルトのフィルター:car_modelselectとyearvalue