比较日期updated_at到当前月份
答
下面应该工作
@some_variable = YourModel.where('extract(month from updated_at) = ?', Date.today.month)
它工作正常。谢啦。 – Rohnin