Displaying 1 result from an estimated 1 matches for "c77a08ef".
2006 Aug 06
1
How to query with calculations?
Hi,
I would like to do something simple yet I''m confused.
Lets say I have a table with 2 fields: rank, updated_at.
I would like to show all records matching this condition:
rank = rank ? (Time.now.to_time ? Updated_at.to_time)
As you can see this is supposed to be a calculation on the field.
How do I write a query to show this?
I''ve tried with_scope, and regular find but did not