2015-10-17 199 views

回答

2

下面应该工作

@some_variable = YourModel.where('extract(month from updated_at) = ?', Date.today.month) 
+1

它工作正常。谢啦。 – Rohnin

相关问题