ドメイン モデル: type1、type2、type3、および plant。
$ rails g model type1 name:string
$ rails g model type2 name:string
$ rails g model type3 type1:references type2:references name:string
$ rails g model plant type1:references type2:references type3:references name:string
植物のグリッド パネルには、type1、type2、type3 の 3 つのコンボボックス列があります。Type3 は、type1 と type2 に依存します。type1とtype2のいずれかが選択されているときにtype3コンボボックスをフィルタリングする方法は?