2013-07-15 59 views

回答

4

假設你有類ModelNameActiveRecord::Base繼承:

ModelName.all(:conditions => ['created_at > ?', Time.now - 12.months]) 
相關問題