/ Published in: Rails
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
@objects = Object_Name.where("created_at < :week", {:week => 1.week.ago})