Results 1 to 2 of 2
May 23, 2013, 13:23 #1
- Join Date
- Dec 2004
- 0 Post(s)
- 0 Thread(s)
getting activerecord to write SQL date math
I have a model that has a start_at and length columns. The start_at is a Date column. What I would like to do is find all items that are overdue based on todays date. I've got an attr_accessor for due_at that is start_at + length, but that doesn't seem to carry over to AR.
Any advice help on this one would be greatly appreciated.your brain reacts in the same way whether you are
looking at something or thinking about it...