Anyone know the best query to find records created THIS month in Rails 3.1?
class Model scope :this_month, -> { where(created_at: Time.now.beginning_of_month..Time.now.end_of_month) } end
you can call it like this:
Model.this_month