I am trying to figure out if a time stamp in my database is older then
a month so that way my controller will only collect the one's that are
newer. So far I have
:conditions => ['level IN (?) AND created_at < ?',
['notice', 'warning', 'error'],
Time.now.months_ago(1)]
You could have 1.month.ago or 30.days.ago depending on how you define "month" for your application.
I am trying to figure out if a time stamp in my database is older then
a month so that way my controller will only collect the one's that are
newer. So far I have