7.days.ago 这个是 7 天以前 7 天以后怎么表示 忘记了
Time.now + 7.days
(-7).days.ago 7.days.from_now
(-7).days.ago
7.days.from_now
#1 楼 @dfxiaozi #2 楼 @luikore 谢谢
7.days.since http://api.rubyonrails.org/classes/Numeric.html#method-i-since
7.days.since
Time.now.advance(days: 7)