Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
我有两个问题:
Model.where(:a => 1 , b => 2 , c => 3 , d => 4 )
Model.where(:e => 5 , f => 6 )
使工会取得以下结果是否是一种良好(或有效的)做法?
models = Model.where(:a => 1 , b => 2 , c => 3 , d => 4 )
models += Model.where(:e => 5 , f => 6 )
铁路工程3.07。 这不是事实。 例如,它简化了。
EDIT: Sorry, I was not explicit. The goal is to get the union (the sum of results).