2023/05/26 rails rails,where or def check @spec = Hash.new @spec = Spec.merge(Spec.where(a:1).or(Spec.where(b:0))) .merge(Spec.where(c:0).or(Spec.where(d:0))).firstend メールで送信BlogThis!Twitter で共有するFacebook で共有する